projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2727dbf
)
Fix upload date regexp (closes #93)
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Tue, 15 Mar 2011 19:12:10 +0000
(20:12 +0100)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Tue, 15 Mar 2011 19:12:10 +0000
(20:12 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index b2cd5e87f464393d7d294c36282de9ac5826ae5e..e3bde779c86d7f3a53b39a3039f4ba74f65fba36 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-1056,7
+1056,7
@@
class YoutubeIE(InfoExtractor):
# upload date
upload_date = u'NA'
- mobj = re.search(r'id="eow-date
"
.*?>(.*?)</span>', video_webpage, re.DOTALL)
+ mobj = re.search(r'id="eow-date.*?>(.*?)</span>', video_webpage, re.DOTALL)
if mobj is not None:
upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())
format_expressions = ['%d %B %Y', '%B %d %Y', '%b %d %Y']