mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Fix upload date regexp (closes #93)
This commit is contained in:
parent
2727dbf78d
commit
3efa45c3a2
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ class YoutubeIE(InfoExtractor):
|
||||||
|
|
||||||
# upload date
|
# upload date
|
||||||
upload_date = u'NA'
|
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:
|
if mobj is not None:
|
||||||
upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())
|
upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())
|
||||||
format_expressions = ['%d %B %Y', '%B %d %Y', '%b %d %Y']
|
format_expressions = ['%d %B %Y', '%B %d %Y', '%b %d %Y']
|
||||||
|
|
Loading…
Reference in a new issue