|
|
@ -69,12 +69,14 @@ class AMPIE(InfoExtractor):
|
|
|
|
|
|
|
|
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
timestamp = parse_iso8601(item.get('pubDate'), ' ') or parse_iso8601(item.get('dc-date'))
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': video_id,
|
|
|
|
'id': video_id,
|
|
|
|
'title': get_media_node('title'),
|
|
|
|
'title': get_media_node('title'),
|
|
|
|
'description': get_media_node('description'),
|
|
|
|
'description': get_media_node('description'),
|
|
|
|
'thumbnails': thumbnails,
|
|
|
|
'thumbnails': thumbnails,
|
|
|
|
'timestamp': parse_iso8601(item.get('pubDate'), ' '),
|
|
|
|
'timestamp': timestamp,
|
|
|
|
'duration': int_or_none(media_content[0].get('@attributes', {}).get('duration')),
|
|
|
|
'duration': int_or_none(media_content[0].get('@attributes', {}).get('duration')),
|
|
|
|
'subtitles': subtitles,
|
|
|
|
'subtitles': subtitles,
|
|
|
|
'formats': formats,
|
|
|
|
'formats': formats,
|
|
|
|