Closed theoutsider24 closed 3 years ago
TubeSync version 0.8 with youtube-dl version 2021.01.16 and FFmpeg version 4.3.1-static.
Possibly requires changing from downvotes = self.loaded_metadata.get(field, 0) to downvotes = self.loaded_metadata.get(field) || 0
Damn @meeb you beast!
Thanks for the report, fixed in :latest
and will be bundled into the next release.
Couldn't download this video (https://www.youtube.com/watch?v=O7AXkEzX2VM&ab_channel=LoLEsportsVODsandHighlights) with no downvotes (at time of writing)
Traceback:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/background_task/tasks.py", line 43, in bg_runner func(*args, **kwargs) File "/app/sync/tasks.py", line 335, in download_media write_text_file(media.nfopath, media.nfoxml) File "/app/sync/models.py", line 1081, in nfoxml votes.text = str(self.votes) File "/app/sync/models.py", line 981, in votes return upvotes + downvotes TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'