Use default_ext

This commit is contained in:
bashonly 2023-07-27 13:25:47 -05:00
parent 7c50323661
commit bd4d4b1319
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -206,11 +206,11 @@ def parse_url_key(url_key):
known_resolutions = {} known_resolutions = {}
def audio_meta(url): def audio_meta(url):
ext = determine_ext(url) ext = determine_ext(url, default_ext='m4a')
return { return {
'format_note': 'Music track', 'format_note': 'Music track',
'ext': 'm4a' if ext != 'mp3' else ext, 'ext': ext,
'acodec': 'aac' if ext != 'mp3' else ext, 'acodec': 'aac' if ext == 'm4a' else ext,
'vcodec': 'none', 'vcodec': 'none',
'width': None, 'width': None,
'height': None, 'height': None,