Video description can be null in RSS

This commit is contained in:
Jacob Mansfield 2019-11-30 13:12:55 +00:00 committed by Jacob Mansfield [root@Helix]
parent 5617ac0bcb
commit 1329c91b64

View File

@ -119,7 +119,7 @@ class SynchronizeJob(Job):
video = Video()
video.video_id = video_id
video.name = video_title
video.description = entry.find("{http://search.yahoo.com/mrss/}group").find("{http://search.yahoo.com/mrss/}description").text
video.description = entry.find("{http://search.yahoo.com/mrss/}group").find("{http://search.yahoo.com/mrss/}description").text or ""
video.watched = False
video.new = True
video.downloaded_path = None