projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf38675
)
[youtube] Speed up upload date regex (#6125)
author
Sergey M․
<dstftw@gmail.com>
Mon, 29 Jun 2015 19:02:48 +0000
(
01:02
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 29 Jun 2015 19:02:48 +0000
(
01:02
+0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index c28ca9319f906a1b27413e5fd56e4fddc8560f6e..ed382e10b44d4e159058ed5eb7f764b557721efe 100644
(file)
--- 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())