瀏覽代碼

[adultswim] The bitrate must be an integer or None (reported in #2952)

Jaime Marquínez Ferrándiz 11 年之前
父節點
當前提交
d9222264a8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/adultswim.py

+ 2 - 1
youtube_dl/extractor/adultswim.py

@@ -110,7 +110,8 @@ class AdultSwimIE(InfoExtractor):
                     'format_id': '%s-%s' % (bitrate, type),
                     'url': file_el.text,
                     'ext': self._video_extensions.get(bitrate, 'mp4'),
-                    'tbr': bitrate,
+                    # The bitrate may not be a number (for example: 'iphone')
+                    'tbr': int(bitrate) if bitrate.isdigit() else None,
                     'height': height,
                     'width': width
                 })