fix check max_resolution in TOR mode
This commit is contained in:
parent
f27105fa7f
commit
cb9b6dadbd
@ -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['height'] <= max_resolution:
|
||||
if fmt['acodec'] and fmt['vcodec'] and fmt['width'] <= max_resolution:
|
||||
video_sources.append({
|
||||
'src': fmt['url'],
|
||||
'type': 'video/' + fmt['ext'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user