Revert "fix check max_resolution in TOR mode"
This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab.
This commit is contained in:
parent
cb9b6dadbd
commit
e37c7eed58
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user