From: Yen Chi Hsuan Date: Fri, 25 Sep 2015 10:17:48 +0000 (+0800) Subject: [fktv] Fix a regex X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=8de28761c41ca0451e3bbe4b9ee236d6651cca44;p=youtube-dl [fktv] Fix a regex --- 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( '

([^<]+)

', webpage, 'title')) matches = re.search( - r'(?s)]+(?:poster="([^"]+)")?[^>]*>(.*)', webpage) + r'(?s)])+(?:poster="([^"]+)")?[^>]*>(.*)', + webpage) if matches is None: raise ExtractorError('Unable to extract the video')