diff options
author | Mister Hat <misterhat144@gmail.com> | 2015-05-24 16:30:03 -0500 |
---|---|---|
committer | Mister Hat <misterhat144@gmail.com> | 2015-05-24 16:30:03 -0500 |
commit | 2c935c0c7224a3332ff9f0fd83e8c074cfbe2c9d (patch) | |
tree | 0405b7d6ae17b316af302843d1534a8c8871bcb3 /youtube_dl | |
parent | 7198063d96003050eccb0ea59cc938f0388c0606 (diff) | |
download | youtube-dl-2c935c0c7224a3332ff9f0fd83e8c074cfbe2c9d.tar.xz |
[pinkbike] converted duration to int
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/pinkbike.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/pinkbike.py b/youtube_dl/extractor/pinkbike.py index 4a15c1835..66605ddbe 100644 --- a/youtube_dl/extractor/pinkbike.py +++ b/youtube_dl/extractor/pinkbike.py @@ -20,7 +20,7 @@ class PinkbikeIE(InfoExtractor): 'uploader_id': 'revelco', 'upload_date': '20150406', 'description': 'Official release: www.redbull.ca/rupertwalker', - 'duration': '100' + 'duration': 100 } }, { 'url': 'http://www.pinkbike.com/video/406629/', @@ -34,7 +34,7 @@ class PinkbikeIE(InfoExtractor): 'uploader_id': 'Chromagbikes', 'upload_date': '20150505', 'description': 'Reece Wallace shredding Virgin, Utah. Video by Virtu Media.', - 'duration': '180' + 'duration': 180 } }] @@ -69,7 +69,7 @@ class PinkbikeIE(InfoExtractor): 'id': video_id, 'title': title, 'description': description, - 'duration': self._html_search_meta('video:duration', webpage, 'duration'), + 'duration': int(self._html_search_meta('video:duration', webpage, 'duration')), 'thumbnail': self._html_search_meta('og:image', webpage, 'thumbnail'), 'uploader_id': uploader_id, 'upload_date': upload_date, |