|
|
|
@ -51,9 +51,8 @@ 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
|
|
|
|
|
updated.append(id)
|
|
|
|
|
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')
|
|
|
|
|
video.description = cls._get(vid, 'description')
|
|
|
|
|