From: Sergey M․ Date: Sun, 6 Dec 2020 18:15:30 +0000 (+0700) Subject: [extractor/common] Extract timestamp from Last-Modified header X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=dccf4932e15392a35a44c24a2732cc0ea6deada4;p=youtube-dl [extractor/common] Extract timestamp from Last-Modified header --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 85dc1d02d..055ca838f 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2360,7 +2360,7 @@ class GenericIE(InfoExtractor): info_dict = { 'id': video_id, 'title': self._generic_title(url), - 'upload_date': unified_strdate(head_response.headers.get('Last-Modified')) + 'timestamp': unified_timestamp(head_response.headers.get('Last-Modified')) } # Check for direct link to a video