From 382035d32f88749a87e25e1d94b4d7f2d4ef97f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 2 Aug 2021 18:46:50 -0500 Subject: Fix max_resolution in TOR mode some videos have 480p resolution, and if setting only 360p the player would have no video to play --- settings.py | 1 + youtube/watch.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index f0c297a..751551b 100644 --- a/settings.py +++ b/settings.py @@ -143,6 +143,7 @@ For security reasons, enabling this is not recommended.''', 'comment': '', 'options': [ (360, '360p'), + (480, '480p'), (720, '720p'), ], 'category': 'playback', diff --git a/youtube/watch.py b/youtube/watch.py index 38d08f7..eab56f7 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -27,7 +27,7 @@ except FileNotFoundError: def get_video_sources(info, tor_bypass=False): video_sources = [] if (not settings.theater_mode) or (settings.route_tor == 2) or tor_bypass: - max_resolution = 360 + max_resolution = 480 else: max_resolution = settings.default_resolution for fmt in info['formats']: -- cgit v1.2.3