Always update video metadata

master
Nikola Forró 6 years ago
parent c9d3c0fc10
commit 7bd615c5f9

@ -51,8 +51,7 @@ class Sync(object):
created_at = cls._get(vid, 'created_at')
updated_at = cls._to_datetime(cls._get(vid, 'updated_at', default=created_at))
created_at = cls._to_datetime(created_at)
if video.updated_at and video.updated_at >= updated_at:
continue
if not video.updated_at or video.updated_at < updated_at:
updated.append(id)
video.broadcast_type = cls._get(vid, 'broadcast_type')
video.title = cls._get(vid, 'title')

Loading…
Cancel
Save