>>101402380
what I do is have separate configs for audio / video / subtitle downloads with the specific options inside them. audio config might look like this:
-o "%(title)s.%(ext)s"
-P "~/audio"
--extract-audio
--ignore-config
then when you want an audio only download you just call that config like so:
yt-dlp --config-location /path/to/audio-config <url>