[fktv] get format_id from video file ext
[youtube-dl] / youtube_dl / extractor / fktv.py
index fb9739b49d041cc0b555566aebfa1f21ed35923c..40ea2789525ab720beb9e6e42a096682a9581027 100644 (file)
@@ -45,7 +45,7 @@ class FKTVIE(InfoExtractor):
         urls = re.findall(r'<source[^>]+src="([^"]+)"', sources)
         formats = [{
             'url': furl,
-            'format_id': determine_ext(url),
+            'format_id': determine_ext(furl),
         } for furl in urls]
         return {
             'id': episode,