logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 5e822c252627905036b164cdbc1220dc7b1f5d08
parent cc017e07ca1ce70740f45620f2bceb1b0ac25eb2
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun,  6 Dec 2020 22:30:30 +0700

[generic] Extract RSS video timestamp

Diffstat:

Myoutube_dl/extractor/generic.py3+++
1 file changed, 3 insertions(+), 0 deletions(-)

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