[vidoes] default run time seconds to 1800
This commit is contained in:
@ -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.objects.filter(pk=video.id).update(**video_dict)
|
||||||
video.refresh_from_db()
|
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
|
return video
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user