Merge branch 'meeb:main' into tcely-queues

This commit is contained in:
tcely 2025-04-07 03:35:41 -04:00 committed by GitHub
commit 379cafdec7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

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']):

View File

@ -237,7 +237,7 @@ class Source(models.Model):
_('source video codec'), _('source video codec'),
max_length=8, max_length=8,
db_index=True, db_index=True,
choices=list(reversed(YouTube_VideoCodec.choices[1:])), choices=list(reversed(YouTube_VideoCodec.choices)),
default=YouTube_VideoCodec.VP9, default=YouTube_VideoCodec.VP9,
help_text=_('Source video codec, desired video encoding format to download (ignored if "resolution" is audio only)') help_text=_('Source video codec, desired video encoding format to download (ignored if "resolution" is audio only)')
) )