diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-09-26 18:27:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 23:27:16 +0000 |
commit | eabb4680fdb09ba1f48d174a700a2e3b43f82add (patch) | |
tree | 1af6a0cebbc9e17410b298b83a5bc93ce65c4807 | |
parent | 1d84b780cf33a1d84756825ac23f990a905703df (diff) |
[ie/niconico] Fix m3u8 formats extraction (#11103)
Closes #10724
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/niconico.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/niconico.py b/yt_dlp/extractor/niconico.py index 179e7a9b1..e06740d62 100644 --- a/yt_dlp/extractor/niconico.py +++ b/yt_dlp/extractor/niconico.py @@ -420,7 +420,7 @@ class NiconicoIE(InfoExtractor): 'x-request-with': 'https://www.nicovideo.jp', })['data']['contentUrl'] # Getting all audio formats results in duplicate video formats which we filter out later - dms_fmts = self._extract_m3u8_formats(dms_m3u8_url, video_id) + dms_fmts = self._extract_m3u8_formats(dms_m3u8_url, video_id, 'mp4') # m3u8 extraction does not provide audio bitrates, so extract from the API data and fix for audio_fmt in traverse_obj(dms_fmts, lambda _, v: v['vcodec'] == 'none'): @@ -432,7 +432,6 @@ class NiconicoIE(InfoExtractor): 'asr': ('samplingRate', {int_or_none}), }), get_all=False), 'acodec': 'aac', - 'ext': 'm4a', } # Sort before removing dupes to keep the format dicts with the lowest tbr |