From: Jaime Marquínez Ferrándiz Date: Fri, 16 May 2014 20:12:52 +0000 (+0200) Subject: [youtube] Recognize a second format of the upload_date in the 'watch-uploader-info... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=76e92371acbf116f046b35c94781e3b931efd741;p=youtube-dl [youtube] Recognize a second format of the upload_date in the 'watch-uploader-info' element (#2911) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index f7bfa9f88..981ca62c0 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1140,7 +1140,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): mobj = re.search(r'(?s)id="eow-date.*?>(.*?)', video_webpage) if mobj is None: mobj = re.search( - r'(?s)id="watch-uploader-info".*?>.*?Published on (.*?)', + r'(?s)id="watch-uploader-info".*?>.*?(?:Published|Uploaded) on (.*?)', video_webpage) if mobj is not None: upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())