From e37c7eed5830571a87ac8dd75ba1e859cdd6d70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 2 Aug 2021 18:35:20 -0500 Subject: Revert "fix check max_resolution in TOR mode" This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab. --- youtube/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube') 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'], -- cgit v1.2.3