[pinkbike] converted duration to int
This commit is contained in:
parent
7198063d96
commit
2c935c0c72
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ class PinkbikeIE(InfoExtractor):
|
||||||
'uploader_id': 'revelco',
|
'uploader_id': 'revelco',
|
||||||
'upload_date': '20150406',
|
'upload_date': '20150406',
|
||||||
'description': 'Official release: www.redbull.ca/rupertwalker',
|
'description': 'Official release: www.redbull.ca/rupertwalker',
|
||||||
'duration': '100'
|
'duration': 100
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://www.pinkbike.com/video/406629/',
|
'url': 'http://www.pinkbike.com/video/406629/',
|
||||||
|
@ -34,7 +34,7 @@ class PinkbikeIE(InfoExtractor):
|
||||||
'uploader_id': 'Chromagbikes',
|
'uploader_id': 'Chromagbikes',
|
||||||
'upload_date': '20150505',
|
'upload_date': '20150505',
|
||||||
'description': 'Reece Wallace shredding Virgin, Utah. Video by Virtu Media.',
|
'description': 'Reece Wallace shredding Virgin, Utah. Video by Virtu Media.',
|
||||||
'duration': '180'
|
'duration': 180
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class PinkbikeIE(InfoExtractor):
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'description': description,
|
'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'),
|
'thumbnail': self._html_search_meta('og:image', webpage, 'thumbnail'),
|
||||||
'uploader_id': uploader_id,
|
'uploader_id': uploader_id,
|
||||||
'upload_date': upload_date,
|
'upload_date': upload_date,
|
||||||
|
|
Loading…
Reference in a new issue