]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Speed up upload date regex (#6125)
authorSergey M․ <dstftw@gmail.com>
Mon, 29 Jun 2015 19:02:48 +0000 (01:02 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 29 Jun 2015 19:02:48 +0000 (01:02 +0600)
youtube_dl/extractor/youtube.py

index c28ca9319f906a1b27413e5fd56e4fddc8560f6e..ed382e10b44d4e159058ed5eb7f764b557721efe 100644 (file)
@@ -1003,7 +1003,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
         mobj = re.search(r'(?s)id="eow-date.*?>(.*?)</span>', video_webpage)
         if mobj is None:
             mobj = re.search(
-                r'(?s)id="watch-uploader-info".*?>.*?(?:Published|Uploaded|Streamed live) on (.*?)</strong>',
+                r'id="watch-uploader-info".*?>.*?(?:Published|Uploaded|Streamed live|Started) on (.*?)</strong>',
                 video_webpage)
         if mobj is not None:
             upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())