aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-09-25 18:17:48 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-09-25 18:17:48 +0800
commit8de28761c41ca0451e3bbe4b9ee236d6651cca44 (patch)
tree42383fb7097324a0cc0cdd5d03261a6884bfad01
parent711762f0b70b65f2f28f2cd8023497f50fccd81a (diff)
[fktv] Fix a regex
-rw-r--r--youtube_dl/extractor/fktv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/fktv.py b/youtube_dl/extractor/fktv.py
index 0c14834f9..d9fc9952d 100644
--- a/youtube_dl/extractor/fktv.py
+++ b/youtube_dl/extractor/fktv.py
@@ -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')