projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
711762f
)
[fktv] Fix a regex
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 25 Sep 2015 10:17:48 +0000
(18:17 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 25 Sep 2015 10:17:48 +0000
(18:17 +0800)
youtube_dl/extractor/fktv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/fktv.py
b/youtube_dl/extractor/fktv.py
index 0c14834f932b1f78f1dab800b6a55631c9682379..d9fc9952d9eab6157a1a76dd3e1397c9d54e464c 100644
(file)
--- 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')