- app now handles broken analytic json files correctly and does not stop with an error because of them, they are now ignored.
__save_json
now utilizes a temp fileanalytics/username/streamername.json.temp
:- Sometimes analytics files can be corrupted when written to disk. Solution:
- First, write the data to a temporary file. After that, there will be two files on the disk - a new one and a target one.
- Rename temporary file to the target.
- If the application is closed or crashes on the first step, the original file will remain untouched on the disk.
- Sometimes analytics files can be corrupted when written to disk. Solution:
- 0-sized and broken json files are now error-logged (you will be also informed in the console), so you can find the problem files. It will trigger when you'll try to open the analytics webpage.
What's Changed
- Analytics fix by @rdavydov in #384
- Update Twitch.py streak time to 1 by @OrbitalCannon in #383
New Contributors
- @OrbitalCannon made their first contribution in #383
Full Changelog: 1.8.7...master