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:
@ -77,7 +77,10 @@ def get_updates(start, count, url, fmt, last_id=None, link_type=None):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Query video metadata from YouTube
|
# 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
|
# Convert '20190101' to unix time
|
||||||
date_str = result.get('upload_date')
|
date_str = result.get('upload_date')
|
||||||
|
Reference in New Issue
Block a user