[extractor/common] Extract timestamp from Last-Modified header
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2020 18:15:30 +0000 (01:15 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2020 18:15:30 +0000 (01:15 +0700)
youtube_dl/extractor/generic.py

index 85dc1d02dd97a2fbf628cd1008e0e5064ae35dbc..055ca838f69e4a53cc6f57e99bc10f49f230c544 100644 (file)
@@ -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