From: Sergey M․ Date: Mon, 29 Jun 2015 19:02:48 +0000 (+0600) Subject: [youtube] Speed up upload date regex (#6125) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f0714c9f869a8b4c2032566af12c107491472361;p=youtube-dl [youtube] Speed up upload date regex (#6125) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index c28ca9319..ed382e10b 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1003,7 +1003,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): mobj = re.search(r'(?s)id="eow-date.*?>(.*?)', video_webpage) if mobj is None: mobj = re.search( - r'(?s)id="watch-uploader-info".*?>.*?(?:Published|Uploaded|Streamed live) on (.*?)', + r'id="watch-uploader-info".*?>.*?(?:Published|Uploaded|Streamed live|Started) on (.*?)', video_webpage) if mobj is not None: upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())