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 --- 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 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