mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-01 12:05:26 +02:00
Use default_ext
This commit is contained in:
parent
7c50323661
commit
bd4d4b1319
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user