From 0257cb6e427c8291f07d80a5177addef81e64da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FSergey=3D20M=3DE2=3D80=3DA4=3F=3D?= Date: Fri, 26 Feb 2021 14:48:35 +0100 Subject: [PATCH] [generic] Extract RSS video timestamp --- haruhi_dl/extractor/generic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/haruhi_dl/extractor/generic.py b/haruhi_dl/extractor/generic.py index 0a6bc25c4..bdc6271aa 100644 --- a/haruhi_dl/extractor/generic.py +++ b/haruhi_dl/extractor/generic.py @@ -30,6 +30,7 @@ from ..utils import ( smuggle_url, unescapeHTML, unified_strdate, + unified_timestamp, unsmuggle_url, UnsupportedError, xpath_text, @@ -2245,6 +2246,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 {