Always update video metadata

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

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

Loading…
Cancel
Save