Skip to content

Commit

Permalink
Use default_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly committed Jul 27, 2023
1 parent 7c50323 commit bd4d4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt_dlp/extractor/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ def parse_url_key(url_key):
known_resolutions = {}

def audio_meta(url):
ext = determine_ext(url)
ext = determine_ext(url, default_ext='m4a')
return {
'format_note': 'Music track',
'ext': 'm4a' if ext != 'mp3' else ext,
'acodec': 'aac' if ext != 'mp3' else ext,
'ext': ext,
'acodec': 'aac' if ext == 'm4a' else ext,
'vcodec': 'none',
'width': None,
'height': None,
Expand Down

0 comments on commit bd4d4b1

Please sign in to comment.