aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/amp.py
diff options
context:
space:
mode:
authorAdrian Heine né Lang <mail@adrianheine.de>2021-01-26 22:43:11 +0100
committerGitHub <noreply@github.com>2021-01-26 22:43:11 +0100
commitd18f4419a72a01abc2cb45ef23f2400cd3eb5f43 (patch)
treeeec32ad6d940f32c3ded3d6b86b91a1426f37adc /youtube_dl/extractor/amp.py
parent0f7d413d5b2637e2fb091745ab4f70811a6cc600 (diff)
[AMP] Fix upload_date and timestamp extraction (#27970)
Diffstat (limited to 'youtube_dl/extractor/amp.py')
-rw-r--r--youtube_dl/extractor/amp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/amp.py b/youtube_dl/extractor/amp.py
index 7ff098cfa..24c684cad 100644
--- a/youtube_dl/extractor/amp.py
+++ b/youtube_dl/extractor/amp.py
@@ -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,