1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[fktv] Fix a regex

This commit is contained in:
Yen Chi Hsuan 2015-09-25 18:17:48 +08:00
parent 711762f0b7
commit 8de28761c4

View file

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