mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
Handling when channel info json may not have channel_id.
This commit is contained in:
parent
1812a1690f
commit
df79aa13b1
2 changed files with 1 additions and 2 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue