From 3d5293ba4a7e5097ed444d6ce8687c7ca49befb3 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 27 May 2020 11:19:39 -0700 Subject: Fix error when invidious fails to return URLS --- youtube/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/watch.py') 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: ' -- cgit v1.2.3