Handling when channel info json may not have channel_id.

This commit is contained in:
Roland 2023-02-17 16:30:13 -07:00
parent 1812a1690f
commit df79aa13b1
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 1 additions and 2 deletions

View file

@ -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."""

View file

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