aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-06 22:30:30 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-06 22:30:30 +0700
commit5e822c252627905036b164cdbc1220dc7b1f5d08 (patch)
tree798e64b154988fddaf69babc240f2a49aec4f8a8 /youtube_dl
parentcc017e07ca1ce70740f45620f2bceb1b0ac25eb2 (diff)
[generic] Extract RSS video timestamp
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 8ed2789d0..d0e0d6919 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -30,6 +30,7 @@ from ..utils import (
smuggle_url,
unescapeHTML,
unified_strdate,
+ unified_timestamp,
unsmuggle_url,
UnsupportedError,
xpath_text,
@@ -2208,6 +2209,8 @@ class GenericIE(InfoExtractor):
'url': next_url,
'title': it.find('title').text,
'description': xpath_text(it, 'description', default=None),
+ 'timestamp': unified_timestamp(
+ xpath_text(it, 'pubDate', default=None)),
})
return {