diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-02 18:46:50 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-02 18:46:50 -0500 |
commit | 382035d32f88749a87e25e1d94b4d7f2d4ef97f4 (patch) | |
tree | 3a75b2475dc4a2f5a51260d074dfd6c87ba7e743 | |
parent | e37c7eed5830571a87ac8dd75ba1e859cdd6d70e (diff) | |
download | yt-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
-rw-r--r-- | settings.py | 1 | ||||
-rw-r--r-- | youtube/watch.py | 2 |
2 files changed, 2 insertions, 1 deletions
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']: |