diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-30 01:02:48 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-30 01:02:48 +0600 |
commit | f0714c9f869a8b4c2032566af12c107491472361 (patch) | |
tree | 830170cc61468f7d610b8c1bbec3b94a0f03d8b2 /youtube_dl | |
parent | cf386750c9194839e419a0412f45f25f28236c77 (diff) |
[youtube] Speed up upload date regex (#6125)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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.*?>(.*?)</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()) |