projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[cnn] Match more URLs
[youtube-dl]
/
youtube_dl
/
extractor
/
vk.py
diff --git
a/youtube_dl/extractor/vk.py
b/youtube_dl/extractor/vk.py
index 7dea8c59d2a30673b93ae181bab128b8ef0a8b58..cc384adbf9837f35f90c64d0e8dc0396b0b601ec 100644
(file)
--- a/
youtube_dl/extractor/vk.py
+++ b/
youtube_dl/extractor/vk.py
@@
-31,7
+31,7
@@
class VKIE(InfoExtractor):
'id': '162222515',
'ext': 'flv',
'title': 'ProtivoGunz - Хуёвая песня',
'id': '162222515',
'ext': 'flv',
'title': 'ProtivoGunz - Хуёвая песня',
- 'uploader': 're:
Noize MC
.*',
+ 'uploader': 're:
(?:Noize MC|Alexander Ilyashenko)
.*',
'duration': 195,
'upload_date': '20120212',
},
'duration': 195,
'upload_date': '20120212',
},
@@
-140,7
+140,7
@@
class VKIE(InfoExtractor):
if not video_id:
video_id = '%s_%s' % (mobj.group('oid'), mobj.group('id'))
if not video_id:
video_id = '%s_%s' % (mobj.group('oid'), mobj.group('id'))
- info_url = 'http://vk.com/al_video.php?act=show&al=1&video=%s' % video_id
+ info_url = 'http://vk.com/al_video.php?act=show&al=1&
module=video&
video=%s' % video_id
info_page = self._download_webpage(info_url, video_id)
ERRORS = {
info_page = self._download_webpage(info_url, video_id)
ERRORS = {
@@
-152,7
+152,10
@@
class VKIE(InfoExtractor):
'use --username and --password options to provide account credentials.',
r'<!>Unknown error':
'use --username and --password options to provide account credentials.',
r'<!>Unknown error':
- 'Video %s does not exist.'
+ 'Video %s does not exist.',
+
+ r'<!>Видео временно недоступно':
+ 'Video %s is temporarily unavailable.',
}
for error_re, error_msg in ERRORS.items():
}
for error_re, error_msg in ERRORS.items():