]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[fktv] Fix a regex
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 25 Sep 2015 10:17:48 +0000 (18:17 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 25 Sep 2015 10:17:48 +0000 (18:17 +0800)
youtube_dl/extractor/fktv.py

index 0c14834f932b1f78f1dab800b6a55631c9682379..d9fc9952d9eab6157a1a76dd3e1397c9d54e464c 100644 (file)
@@ -33,7 +33,8 @@ class FKTVIE(InfoExtractor):
         title = clean_html(self._html_search_regex(
             '<h3>([^<]+)</h3>', webpage, 'title'))
         matches = re.search(
-            r'(?s)<video[^>]+(?:poster="([^"]+)")?[^>]*>(.*)</video>', webpage)
+            r'(?s)<video(?:(?!poster)[^>])+(?:poster="([^"]+)")?[^>]*>(.*)</video>',
+            webpage)
         if matches is None:
             raise ExtractorError('Unable to extract the video')