break if no info
This commit is contained in:
parent
70e8f9c048
commit
97129c6a21
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,8 @@ class GetYoutubeVideos:
|
|||
video_id=result.group(1)
|
||||
if video_id not in self.downloaded_items:
|
||||
video_info = self._get_video_info(video_id)
|
||||
if not video_info:
|
||||
break
|
||||
info_filename = os.path.join(
|
||||
self.config['download_dir'],
|
||||
f"{video_id}.json"
|
||||
|
|
Loading…
Reference in a new issue