]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[funnyordie] Relax M3U8 URL matching
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 9 Apr 2016 12:12:11 +0000 (20:12 +0800)
committerYen 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

index 4c4a87e2a3337bfb5de955a329c7edba2c338ad2..8c5ffc9e84cec305e9fc813a6366b360b7e36230 100644 (file)
@@ -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 = []