Skip to content

Commit

Permalink
fix: youtube re-attempt too fast
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1832 committed Mar 26, 2023
1 parent c963d42 commit 22f65f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _get_caption(url: str, lang_code: str | List[str] = 'a.en') -> str:
try:
if source_captions == {}:
info_display.error(f'❌ No captions found in this video. Please try another one.')
time.sleep(1)
except KeyError:
info_display.error(f'❌ Caption language currently not supported.\n\n'
f'{source_captions}\n\n'
Expand Down

0 comments on commit 22f65f4

Please sign in to comment.