From df79aa13b1a58741a7b2260b46c70b8cacbb4387 Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 17 Feb 2023 16:30:13 -0700 Subject: [PATCH] Handling when channel info json may not have channel_id. --- modules/videos/downloader.py | 2 +- wrolpi/downloader.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/videos/downloader.py b/modules/videos/downloader.py index f71783d4..f74c50ff 100755 --- a/modules/videos/downloader.py +++ b/modules/videos/downloader.py @@ -80,7 +80,7 @@ class ChannelDownloader(Downloader, ABC): @staticmethod def is_a_playlist(info: dict): # A playlist may have an id different from its channel. - return info['id'] != info['channel_id'] + return info['id'] != info.get('channel_id') async def do_download(self, download: Download) -> DownloadResult: """Update a Channel's catalog, then schedule downloads of every missing video.""" diff --git a/wrolpi/downloader.py b/wrolpi/downloader.py index 0db450e3..b41224d2 100644 --- a/wrolpi/downloader.py +++ b/wrolpi/downloader.py @@ -344,7 +344,6 @@ class DownloadManager: return if now() - last_heartbeat > self.worker_alive_frequency: - worker_logger.debug("I'm alive") last_heartbeat = now() disabled = self.disabled.is_set()