X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ffktv.py;h=40ea2789525ab720beb9e6e42a096682a9581027;hb=040ac686798fdc922157cca64d654933e3f6d096;hp=0c14834f932b1f78f1dab800b6a55631c9682379;hpb=711762f0b70b65f2f28f2cd8023497f50fccd81a;p=youtube-dl diff --git a/youtube_dl/extractor/fktv.py b/youtube_dl/extractor/fktv.py index 0c14834f9..40ea27895 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') @@ -43,9 +44,9 @@ class FKTVIE(InfoExtractor): urls = re.findall(r']+src="([^"]+)"', sources) formats = [{ - 'url': url, - 'format_id': determine_ext(url), - } for url in urls] + 'url': furl, + 'format_id': determine_ext(furl), + } for furl in urls] return { 'id': episode, 'title': title,