[AMP] Fix upload_date and timestamp extraction (#27970)

This commit is contained in:
Adrian Heine né Lang
2021-01-26 22:43:11 +01:00
committed by GitHub
parent 0f7d413d5b
commit d18f4419a7
3 changed files with 12 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ from ..utils import (
int_or_none,
mimetype2ext,
parse_iso8601,
unified_timestamp,
url_or_none,
)
@@ -88,7 +89,7 @@ class AMPIE(InfoExtractor):
self._sort_formats(formats)
timestamp = parse_iso8601(item.get('pubDate'), ' ') or parse_iso8601(item.get('dc-date'))
timestamp = unified_timestamp(item.get('pubDate'), ' ') or parse_iso8601(item.get('dc-date'))
return {
'id': video_id,