Properly handle deleted videos

This commit is contained in:
Maksym Pavlenko
2019-05-30 23:46:56 -07:00
parent c9b6f7e7b0
commit 9c8003a17f
+4 -1
View File
@@ -77,7 +77,10 @@ def get_updates(start, count, url, fmt, last_id=None, link_type=None):
break
# Query video metadata from YouTube
result = ytdl.process_ie_result(entry, download=False)
try:
result = ytdl.process_ie_result(entry, download=False)
except youtube_dl.utils.DownloadError:
continue
# Convert '20190101' to unix time
date_str = result.get('upload_date')