break if no info

This commit is contained in:
Antonio J. Delgado 2024-12-29 17:37:50 +02:00
parent 70e8f9c048
commit 97129c6a21

View file

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