Use a single Val call

This commit is contained in:
tcely 2025-04-08 20:13:20 -04:00 committed by GitHub
parent e394232b15
commit aa78c7309e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -303,10 +303,10 @@ def download_media(
pp_opts.sponsorblock_remove.update(sponsor_categories or {})
# Enable audio extraction for audio-only extensions
audio_exts = {
Val(FileExtension.M4A),
Val(FileExtension.OGG),
}
audio_exts = set(Val(
FileExtension.M4A,
FileExtension.OGG,
))
if extension in audio_exts:
pp_opts.extractaudio = True
pp_opts.nopostoverwrites = False