浏览代码

[blinkx] Fix duration

Sergey M․ 11 年之前
父节点
当前提交
8d2cc6fbb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/blinkx.py

+ 1 - 1
youtube_dl/extractor/blinkx.py

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