Fix max_resolution in TOR mode
some videos have 480p resolution, and if setting only 360p the player would have no video to play
This commit is contained in:
parent
e37c7eed58
commit
382035d32f
@ -143,6 +143,7 @@ For security reasons, enabling this is not recommended.''',
|
||||
'comment': '',
|
||||
'options': [
|
||||
(360, '360p'),
|
||||
(480, '480p'),
|
||||
(720, '720p'),
|
||||
],
|
||||
'category': 'playback',
|
||||
|
@ -27,7 +27,7 @@ except FileNotFoundError:
|
||||
def get_video_sources(info, tor_bypass=False):
|
||||
video_sources = []
|
||||
if (not settings.theater_mode) or (settings.route_tor == 2) or tor_bypass:
|
||||
max_resolution = 360
|
||||
max_resolution = 480
|
||||
else:
|
||||
max_resolution = settings.default_resolution
|
||||
for fmt in info['formats']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user