projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c7f31
)
[funnyordie] Relax M3U8 URL matching
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 9 Apr 2016 12:12:11 +0000
(20:12 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 9 Apr 2016 12:17:35 +0000
(20:17 +0800)
Also, m3u8_url extraction should be fatal as all formats depends
directly or indirectly on it.
This change fixes test_Generic_26 and TestFunnyOrDieSubtitles
youtube_dl/extractor/funnyordie.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/funnyordie.py
b/youtube_dl/extractor/funnyordie.py
index 4c4a87e2a3337bfb5de955a329c7edba2c338ad2..8c5ffc9e84cec305e9fc813a6366b360b7e36230 100644
(file)
--- a/
youtube_dl/extractor/funnyordie.py
+++ b/
youtube_dl/extractor/funnyordie.py
@@
-46,8
+46,8
@@
class FunnyOrDieIE(InfoExtractor):
links.sort(key=lambda link: 1 if link[1] == 'mp4' else 0)
m3u8_url = self._search_regex(
- r'<source[^>]+src=(["\'])(?P<url>.+?/master\.m3u8)\1',
- webpage, 'm3u8 url',
default=None,
group='url')
+ r'<source[^>]+src=(["\'])(?P<url>.+?/master\.m3u8
[^"\']*
)\1',
+ webpage, 'm3u8 url', group='url')
formats = []