aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-02 18:46:50 -0500
committerJesús <heckyel@hyperbola.info>2021-08-02 18:46:50 -0500
commit382035d32f88749a87e25e1d94b4d7f2d4ef97f4 (patch)
tree3a75b2475dc4a2f5a51260d074dfd6c87ba7e743 /youtube/watch.py
parente37c7eed5830571a87ac8dd75ba1e859cdd6d70e (diff)
downloadyt-local-382035d32f88749a87e25e1d94b4d7f2d4ef97f4.tar.lz
yt-local-382035d32f88749a87e25e1d94b4d7f2d4ef97f4.tar.xz
yt-local-382035d32f88749a87e25e1d94b4d7f2d4ef97f4.zip
Fix max_resolution in TOR mode
some videos have 480p resolution, and if setting only 360p the player would have no video to play
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py2
1 files changed, 1 insertions, 1 deletions
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']: