aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2011-03-15 20:12:10 +0100
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2011-03-15 20:12:10 +0100
commit3efa45c3a25d455f610439c56c50f2c7cfd0337b (patch)
tree3711d701d074cbb2e905efc76eee0597cddbafb8
parent2727dbf78d895885016dac52dff7fdc271a77d8f (diff)
Fix upload date regexp (closes #93)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index b2cd5e87f..e3bde779c 100755
--- 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']