From: Sergey M․ Date: Sun, 6 Dec 2020 15:30:30 +0000 (+0700) Subject: [generic] Extract RSS video timestamp X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5e822c252627905036b164cdbc1220dc7b1f5d08;p=youtube-dl [generic] Extract RSS video timestamp --- 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 {