From ed19ffa020acc3134744f4b3b15c7d7165e5a14c Mon Sep 17 00:00:00 2001 From: Caleb Rogers Date: Sun, 5 Jul 2026 23:58:50 +0800 Subject: [PATCH] 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 --- backend/download/src/yt_dlp_handler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/download/src/yt_dlp_handler.py b/backend/download/src/yt_dlp_handler.py index 8aaf0234..768ef643 100644 --- a/backend/download/src/yt_dlp_handler.py +++ b/backend/download/src/yt_dlp_handler.py @@ -428,6 +428,10 @@ class DownloadPostProcess(DownloaderBase): channel = YoutubeChannel(channel_id) channel.get_from_es() + if not channel.json_data: + print(f"{channel_id}: skip failed channel import") + continue + overwrites = channel.get_overwrites() if overwrites.get("index_playlists"): channel.get_all_playlists() @@ -459,6 +463,10 @@ class DownloadPostProcess(DownloaderBase): playlist = YoutubePlaylist(playlist_id) playlist.get_from_es() + if not playlist.json_data: + print(f"{playlist_id}: skip failed playlist import") + continue + playlist.add_vids_to_playlist() playlist.remove_vids_from_playlist() playlist.match_local()