mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 17:36:45 -05:00
correct file ext
This commit is contained in:
parent
05b4719f6c
commit
0f49100783
@ -89,7 +89,7 @@ class ExtremeMusicBaseIE(InfoExtractor):
|
|||||||
'preview_url_hls'))):
|
'preview_url_hls'))):
|
||||||
if determine_ext(audio_url) == 'm3u8':
|
if determine_ext(audio_url) == 'm3u8':
|
||||||
m3u8_url = re.sub(r'\.m3u8\?.*', '/HLS/128_v4.m3u8', audio_url)
|
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({
|
formats.append({
|
||||||
**f,
|
**f,
|
||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
@ -208,8 +208,8 @@ class ExtremeMusicIE(ExtremeMusicBaseIE):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
album_id, track_id, version_id = self._match_valid_url(url).group('album', 'id', 'ver')
|
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')
|
self._initialize(url, version_id or track_id, self.get_param('geo_bypass_country') or 'DE')
|
||||||
album_data = self._get_album_data(album_id, track_id or version_id)
|
album_data = self._get_album_data(album_id, version_id or track_id)
|
||||||
if result := self._extract_track(album_data, track_id, version_id):
|
if result := self._extract_track(album_data, track_id, version_id):
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user