diff options
| author | Adrian Heine né Lang <mail@adrianheine.de> | 2021-01-26 22:43:11 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-26 22:43:11 +0100 | 
| commit | d18f4419a72a01abc2cb45ef23f2400cd3eb5f43 (patch) | |
| tree | eec32ad6d940f32c3ded3d6b86b91a1426f37adc /youtube_dl/extractor/amp.py | |
| parent | 0f7d413d5b2637e2fb091745ab4f70811a6cc600 (diff) | |
[AMP] Fix upload_date and timestamp extraction (#27970)
Diffstat (limited to 'youtube_dl/extractor/amp.py')
| -rw-r--r-- | youtube_dl/extractor/amp.py | 3 | 
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, | 
