Add print if no json data
This commit is contained in:
parent
7e25b8eb60
commit
ef379a6399
|
|
@ -429,6 +429,7 @@ 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()
|
||||
|
|
@ -463,6 +464,7 @@ 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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue