1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

Fix upload date regexp (closes #93)

This commit is contained in:
Ricardo Garcia 2011-03-15 20:12:10 +01:00
parent 2727dbf78d
commit 3efa45c3a2

View file

@ -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']