Browse Source

[fktv] Fix a regex

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
8de28761c4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/fktv.py

+ 2
- 1
youtube_dl/extractor/fktv.py View File

@ -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')


Loading…
Cancel
Save