projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d9eb580
)
[rai] Improve extraction (closes #20253)
author
Sergey M․
<dstftw@gmail.com>
Tue, 5 Mar 2019 16:54:25 +0000
(23:54 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 5 Mar 2019 16:56:42 +0000
(23:56 +0700)
youtube_dl/extractor/rai.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rai.py
b/youtube_dl/extractor/rai.py
index 149153b8fef79654421301c3ba916b02e1f8c259..207a6c247f3c78ff260bd8a326af1b1fb59c550c 100644
(file)
--- a/
youtube_dl/extractor/rai.py
+++ b/
youtube_dl/extractor/rai.py
@@
-74,11
+74,11
@@
class RaiBaseIE(InfoExtractor):
if (ext == 'm3u8' and platform != 'mon') or (ext == 'f4m' and platform != 'flash'):
continue
if (ext == 'm3u8' and platform != 'mon') or (ext == 'f4m' and platform != 'flash'):
continue
- if ext == 'm3u8':
+ if ext == 'm3u8'
or 'format=m3u8' in media_url or platform == 'mon'
:
formats.extend(self._extract_m3u8_formats(
media_url, video_id, 'mp4', 'm3u8_native',
m3u8_id='hls', fatal=False))
formats.extend(self._extract_m3u8_formats(
media_url, video_id, 'mp4', 'm3u8_native',
m3u8_id='hls', fatal=False))
- elif ext == 'f4m':
+ elif ext == 'f4m'
or platform == 'flash'
:
manifest_url = update_url_query(
media_url.replace('manifest#live_hds.f4m', 'manifest.f4m'),
{'hdcore': '3.7.0', 'plugin': 'aasp-3.7.0.39.44'})
manifest_url = update_url_query(
media_url.replace('manifest#live_hds.f4m', 'manifest.f4m'),
{'hdcore': '3.7.0', 'plugin': 'aasp-3.7.0.39.44'})