Fix upload date regexp (closes #93)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 15 Mar 2011 19:12:10 +0000 (20:12 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 15 Mar 2011 19:12:10 +0000 (20:12 +0100)
youtube-dl

index b2cd5e87f464393d7d294c36282de9ac5826ae5e..e3bde779c86d7f3a53b39a3039f4ba74f65fba36 100755 (executable)
@@ -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']