logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: dccf4932e15392a35a44c24a2732cc0ea6deada4
parent 91dd25fe1e18aa3f617005799a8f5018a551c7dd
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon,  7 Dec 2020 01:15:30 +0700

[extractor/common] Extract timestamp from Last-Modified header

Diffstat:

Myoutube_dl/extractor/generic.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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