[blinkx] Fix duration
authorSergey M․ <dstftw@gmail.com>
Sun, 27 Jul 2014 17:40:17 +0000 (00:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 27 Jul 2014 17:40:17 +0000 (00:40 +0700)
youtube_dl/extractor/blinkx.py

index 7d558e262ecea44df6b025f0db716b82d975b314..3e461e715e141b1ff4a294eb01b7657d16f05d4b 100644 (file)
@@ -52,7 +52,7 @@ class BlinkxIE(InfoExtractor):
                     'height': int(m['h']),
                 })
             elif m['type'] == 'original':
-                duration = m['d']
+                duration = float(m['d'])
             elif m['type'] == 'youtube':
                 yt_id = m['link']
                 self.to_screen('Youtube video detected: %s' % yt_id)