diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-05-27 11:19:39 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-05-27 11:19:39 -0700 |
commit | 3d5293ba4a7e5097ed444d6ce8687c7ca49befb3 (patch) | |
tree | d90bfd9bde1368aef01487af0c921e905ba9f104 /youtube | |
parent | f1f77c4d776117df31f1ca36ce9236d644646642 (diff) | |
download | yt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.tar.lz yt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.tar.xz yt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.zip |
Fix error when invidious fails to return URLS
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/watch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index ba6d73c..80a2cf6 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -264,7 +264,7 @@ def extract_info(video_id, playlist_id=None, index=None): + '?fields=adaptiveFormats,formatStreams', report_text='Retrieved urls from Invidious', debug_name='invidious_urls') - except (urllib3.exceptions.HTTPError) as e: + except (util.FetchError, urllib3.exceptions.HTTPError) as e: traceback.print_exc() playability_error = ('Access denied (403) for video urls.' + ' Failed to use Invidious to get the urls: ' |