This commit is contained in:
tcely 2025-04-06 19:28:05 -04:00 committed by GitHub
parent cc842c4a4d
commit f316c3e81a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,7 +236,7 @@ def get_best_video_format(media):
break break
if not best_match: if not best_match:
for fmt in video_formats: for fmt in video_formats:
# Check for codec and resolution match bot drop 60fps # Check for codec and resolution match but drop 60fps
if (source_resolution == fmt['format'] and if (source_resolution == fmt['format'] and
source_vcodec == fmt['vcodec'] and source_vcodec == fmt['vcodec'] and
not fmt['is_hdr']): not fmt['is_hdr']):
@ -294,7 +294,7 @@ def get_best_video_format(media):
break break
if not best_match: if not best_match:
for fmt in video_formats: for fmt in video_formats:
# Check for codec and resolution match bot drop hdr # Check for codec and resolution match but drop hdr
if (source_resolution == fmt['format'] and if (source_resolution == fmt['format'] and
source_vcodec == fmt['vcodec'] and source_vcodec == fmt['vcodec'] and
not fmt['is_60fps']): not fmt['is_60fps']):