Always use 360p in non-theater mode

This commit is contained in:
James Taylor 2019-09-06 15:00:18 -07:00
parent ed066e7414
commit 7a93acabb3

View File

@ -51,8 +51,13 @@ def watch_page_related_playlist_info(item):
def get_video_sources(info):
video_sources = []
if not settings.theater_mode:
max_resolution = 360
else:
max_resolution = settings.default_resolution
for format in info['formats']:
if format['acodec'] != 'none' and format['vcodec'] != 'none' and format['height'] <= settings.default_resolution:
if format['acodec'] != 'none' and format['vcodec'] != 'none' and format['height'] <= max_resolution:
video_sources.append({
'src': format['url'],
'type': 'video/' + format['ext'],