diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-07-17 09:31:48 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-07-17 09:31:48 +0200 |
commit | d9222264a8b4adcbe16286d61404acf67e0dcfa4 (patch) | |
tree | fbdf4802fbf298fe6f4aa249d0aa44ab267755be /youtube_dl/extractor/adultswim.py | |
parent | ca14211e93f3800893d5519f370348ba2db84ddc (diff) | |
download | youtube-dl-d9222264a8b4adcbe16286d61404acf67e0dcfa4.tar.gz youtube-dl-d9222264a8b4adcbe16286d61404acf67e0dcfa4.zip |
[adultswim] The bitrate must be an integer or None (reported in #2952)
Diffstat (limited to 'youtube_dl/extractor/adultswim.py')
-rw-r--r-- | youtube_dl/extractor/adultswim.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/adultswim.py b/youtube_dl/extractor/adultswim.py index fdaecdec1..a00bfcb35 100644 --- a/youtube_dl/extractor/adultswim.py +++ b/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 }) |