mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Use a set of audio-only extensions
This commit is contained in:
parent
55f55e7305
commit
e394232b15
@ -302,7 +302,12 @@ def download_media(
|
|||||||
).options.sponsorblock_mark
|
).options.sponsorblock_mark
|
||||||
pp_opts.sponsorblock_remove.update(sponsor_categories or {})
|
pp_opts.sponsorblock_remove.update(sponsor_categories or {})
|
||||||
|
|
||||||
if Val(FileExtension.OGG) == extension:
|
# Enable audio extraction for audio-only extensions
|
||||||
|
audio_exts = {
|
||||||
|
Val(FileExtension.M4A),
|
||||||
|
Val(FileExtension.OGG),
|
||||||
|
}
|
||||||
|
if extension in audio_exts:
|
||||||
pp_opts.extractaudio = True
|
pp_opts.extractaudio = True
|
||||||
pp_opts.nopostoverwrites = False
|
pp_opts.nopostoverwrites = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user