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:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user