Skip to content

A feature-rich command-line audio/video downloader

[fktv] Fix a regex

Yen Chi Hsuan8de28761c41c
diff --git a/youtube_dl/extractor/fktv.py b/youtube_dl/extractor/fktv.py
index 0c14834f93..d9fc9952d9 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')