aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-05-27 11:19:39 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-05-27 11:19:39 -0700
commit3d5293ba4a7e5097ed444d6ce8687c7ca49befb3 (patch)
treed90bfd9bde1368aef01487af0c921e905ba9f104
parentf1f77c4d776117df31f1ca36ce9236d644646642 (diff)
downloadyt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.tar.lz
yt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.tar.xz
yt-local-3d5293ba4a7e5097ed444d6ce8687c7ca49befb3.zip
Fix error when invidious fails to return URLS
-rw-r--r--youtube/watch.py2
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: '