projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91dd25f
)
[extractor/common] Extract timestamp from Last-Modified header
author
Sergey M․
<dstftw@gmail.com>
Sun, 6 Dec 2020 18:15:30 +0000
(
01:15
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 6 Dec 2020 18:15:30 +0000
(
01:15
+0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 85dc1d02dd97a2fbf628cd1008e0e5064ae35dbc..055ca838f69e4a53cc6f57e99bc10f49f230c544 100644
(file)
--- 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