From 0f49100783e7f189bffd965dda28d2d057164592 Mon Sep 17 00:00:00 2001 From: kclauhk <78251477+kclauhk@users.noreply.github.com> Date: Sat, 28 Sep 2024 20:39:10 +0800 Subject: [PATCH] correct file ext --- yt_dlp/extractor/extrememusic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/extrememusic.py b/yt_dlp/extractor/extrememusic.py index aed6545a5..e75706139 100644 --- a/yt_dlp/extractor/extrememusic.py +++ b/yt_dlp/extractor/extrememusic.py @@ -89,7 +89,7 @@ def _extract_track(self, album_data, track_id=None, version_id=None): 'preview_url_hls'))): if determine_ext(audio_url) == 'm3u8': m3u8_url = re.sub(r'\.m3u8\?.*', '/HLS/128_v4.m3u8', audio_url) - for f in self._extract_m3u8_formats(m3u8_url, sound_id, 'mpeg', fatal=False): + for f in self._extract_m3u8_formats(m3u8_url, sound_id, 'm4a', fatal=False): formats.append({ **f, 'vcodec': 'none', @@ -208,8 +208,8 @@ class ExtremeMusicIE(ExtremeMusicBaseIE): def _real_extract(self, url): album_id, track_id, version_id = self._match_valid_url(url).group('album', 'id', 'ver') - self._initialize(url, track_id or version_id, self.get_param('geo_bypass_country') or 'DE') - album_data = self._get_album_data(album_id, track_id or version_id) + self._initialize(url, version_id or track_id, self.get_param('geo_bypass_country') or 'DE') + album_data = self._get_album_data(album_id, version_id or track_id) if result := self._extract_track(album_data, track_id, version_id): return result else: