Revert "fix check max_resolution in TOR mode"
This reverts commit cb9b6dadbd.
This commit is contained in:
@@ -33,7 +33,7 @@ def get_video_sources(info, tor_bypass=False):
|
|||||||
for fmt in info['formats']:
|
for fmt in info['formats']:
|
||||||
if not all(fmt[attr] for attr in ('quality', 'width', 'ext', 'url')):
|
if not all(fmt[attr] for attr in ('quality', 'width', 'ext', 'url')):
|
||||||
continue
|
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({
|
video_sources.append({
|
||||||
'src': fmt['url'],
|
'src': fmt['url'],
|
||||||
'type': 'video/' + fmt['ext'],
|
'type': 'video/' + fmt['ext'],
|
||||||
|
|||||||
Reference in New Issue
Block a user