Merge pull request #6978 from remitamine/fktv
authorSergey M. <dstftw@gmail.com>
Sat, 26 Sep 2015 07:01:21 +0000 (13:01 +0600)
committerSergey M. <dstftw@gmail.com>
Sat, 26 Sep 2015 07:01:21 +0000 (13:01 +0600)
[fktv] get format_id from video file ext

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,