1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Properly handle deleted videos

This commit is contained in:
Maksym Pavlenko
2019-05-30 23:46:44 -07:00
parent c9b6f7e7b0
commit 9c8003a17f

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')