Don't stop processing downloads if channel has been deleted (#1183)
* Don't stop processing downloads if channel has been deleted * Just continue, don't try/ with immediate except * Add print if no json data
This commit is contained in:
parent
f2848e9ac2
commit
ed19ffa020
|
|
@ -428,6 +428,10 @@ class DownloadPostProcess(DownloaderBase):
|
||||||
|
|
||||||
channel = YoutubeChannel(channel_id)
|
channel = YoutubeChannel(channel_id)
|
||||||
channel.get_from_es()
|
channel.get_from_es()
|
||||||
|
if not channel.json_data:
|
||||||
|
print(f"{channel_id}: skip failed channel import")
|
||||||
|
continue
|
||||||
|
|
||||||
overwrites = channel.get_overwrites()
|
overwrites = channel.get_overwrites()
|
||||||
if overwrites.get("index_playlists"):
|
if overwrites.get("index_playlists"):
|
||||||
channel.get_all_playlists()
|
channel.get_all_playlists()
|
||||||
|
|
@ -459,6 +463,10 @@ class DownloadPostProcess(DownloaderBase):
|
||||||
|
|
||||||
playlist = YoutubePlaylist(playlist_id)
|
playlist = YoutubePlaylist(playlist_id)
|
||||||
playlist.get_from_es()
|
playlist.get_from_es()
|
||||||
|
if not playlist.json_data:
|
||||||
|
print(f"{playlist_id}: skip failed playlist import")
|
||||||
|
continue
|
||||||
|
|
||||||
playlist.add_vids_to_playlist()
|
playlist.add_vids_to_playlist()
|
||||||
playlist.remove_vids_from_playlist()
|
playlist.remove_vids_from_playlist()
|
||||||
playlist.match_local()
|
playlist.match_local()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue