projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
054932f
)
[vk] Fix upload date extraction
author
Sergey M․
<dstftw@gmail.com>
Mon, 15 Jun 2015 14:47:01 +0000
(20:47 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 15 Jun 2015 14:47:01 +0000
(20:47 +0600)
youtube_dl/extractor/vk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vk.py
b/youtube_dl/extractor/vk.py
index 6aeba109dc515392f8fcf0c680594c48c39dff80..f974f8fef8415920cb171f0601189fb1e1b5ebc9 100644
(file)
--- 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))