[vidoes] default run time seconds to 1800

This commit is contained in:
2024-11-03 11:31:08 -05:00
parent 38ba474c1f
commit bfd6331be3

View File

@ -64,6 +64,11 @@ def get_or_create_video(data_dict: dict, post_keys: dict, force_update=False):
Video.objects.filter(pk=video.id).update(**video_dict)
video.refresh_from_db()
# TODO this is a hack so we don't spam scrobbles without a run time seconds
if video.run_time_seconds == 0:
video.run_time_seconds = 1800
video.save(update_fields=["run_time_seconds"]
return video