mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-23 05:23:32 +01:00
[rai] Improve extraction (closes #20253)
This commit is contained in:
parent
d9eb580a79
commit
c17eb5b4b0
@ -74,11 +74,11 @@ class RaiBaseIE(InfoExtractor):
|
|||||||
if (ext == 'm3u8' and platform != 'mon') or (ext == 'f4m' and platform != 'flash'):
|
if (ext == 'm3u8' and platform != 'mon') or (ext == 'f4m' and platform != 'flash'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if ext == 'm3u8':
|
if ext == 'm3u8' or 'format=m3u8' in media_url or platform == 'mon':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
media_url, video_id, 'mp4', 'm3u8_native',
|
media_url, video_id, 'mp4', 'm3u8_native',
|
||||||
m3u8_id='hls', fatal=False))
|
m3u8_id='hls', fatal=False))
|
||||||
elif ext == 'f4m':
|
elif ext == 'f4m' or platform == 'flash':
|
||||||
manifest_url = update_url_query(
|
manifest_url = update_url_query(
|
||||||
media_url.replace('manifest#live_hds.f4m', 'manifest.f4m'),
|
media_url.replace('manifest#live_hds.f4m', 'manifest.f4m'),
|
||||||
{'hdcore': '3.7.0', 'plugin': 'aasp-3.7.0.39.44'})
|
{'hdcore': '3.7.0', 'plugin': 'aasp-3.7.0.39.44'})
|
||||||
|
Loading…
Reference in New Issue
Block a user