diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-15 20:47:01 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-15 20:47:01 +0600 |
commit | 7c7dd9dc7fe8139196c7bd1c512301a61f9f362b (patch) | |
tree | 138ec731a334b25f81abe71b3b4f9923ab777567 /youtube_dl/extractor | |
parent | 054932f4035d606946f0c054c02cf87496b753f6 (diff) |
[vk] Fix upload date extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/vk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 6aeba109d..f974f8fef 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -189,7 +189,7 @@ class VKIE(InfoExtractor): # Extract upload date upload_date = None - mobj = re.search(r'id="mv_date_wrap".*?Added ([a-zA-Z]+ [0-9]+), ([0-9]+) at', info_page) + mobj = re.search(r'id="mv_date(?:_views)?_wrap"[^>]*>([a-zA-Z]+ [0-9]+), ([0-9]+) at', info_page) if mobj is not None: mobj.group(1) + ' ' + mobj.group(2) upload_date = unified_strdate(mobj.group(1) + ' ' + mobj.group(2)) |