aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-02 18:35:20 -0500
committerJesús <heckyel@hyperbola.info>2021-08-02 18:35:20 -0500
commite37c7eed5830571a87ac8dd75ba1e859cdd6d70e (patch)
tree9084c9b142406e5188279171c5dc29288dec0fcc /youtube
parentcb9b6dadbd1c3e268e87cd8eac9097760b3526ab (diff)
downloadyt-local-e37c7eed5830571a87ac8dd75ba1e859cdd6d70e.tar.lz
yt-local-e37c7eed5830571a87ac8dd75ba1e859cdd6d70e.tar.xz
yt-local-e37c7eed5830571a87ac8dd75ba1e859cdd6d70e.zip
Revert "fix check max_resolution in TOR mode"
This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab.
Diffstat (limited to 'youtube')
-rw-r--r--youtube/watch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 80aa3b7..38d08f7 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -33,7 +33,7 @@ def get_video_sources(info, tor_bypass=False):
for fmt in info['formats']:
if not all(fmt[attr] for attr in ('quality', 'width', 'ext', 'url')):
continue
- if fmt['acodec'] and fmt['vcodec'] and fmt['width'] <= max_resolution:
+ if fmt['acodec'] and fmt['vcodec'] and fmt['height'] <= max_resolution:
video_sources.append({
'src': fmt['url'],
'type': 'video/' + fmt['ext'],