first check of any video info
This commit is contained in:
parent
f8656bf5b6
commit
110d3076df
1 changed files with 2 additions and 2 deletions
|
@ -293,12 +293,12 @@ class GetYoutubeVideos:
|
||||||
if video_id not in self.downloaded_items:
|
if video_id not in self.downloaded_items:
|
||||||
video_info = self._get_video_info(video_id)
|
video_info = self._get_video_info(video_id)
|
||||||
downloadable_subtitles = []
|
downloadable_subtitles = []
|
||||||
|
if not video_info:
|
||||||
|
break
|
||||||
if video_info['subtitles']:
|
if video_info['subtitles']:
|
||||||
for subtitle in self.config['subtitle_langs']:
|
for subtitle in self.config['subtitle_langs']:
|
||||||
if subtitle in video_info['subtitles']:
|
if subtitle in video_info['subtitles']:
|
||||||
downloadable_subtitles.append(subtitle)
|
downloadable_subtitles.append(subtitle)
|
||||||
if not video_info:
|
|
||||||
break
|
|
||||||
info_filename = os.path.join(
|
info_filename = os.path.join(
|
||||||
self.config['download_dir'],
|
self.config['download_dir'],
|
||||||
f"{video_id}.json"
|
f"{video_id}.json"
|
||||||
|
|
Loading…
Reference in a new issue