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:
Caleb Rogers 2026-07-05 23:58:50 +08:00 committed by GitHub
parent f2848e9ac2
commit ed19ffa020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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()