aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-10-28 21:06:07 +0700
committerSergey M․ <dstftw@gmail.com>2014-10-28 21:06:07 +0700
commit9334f8f17a0e6a2b97d4e20b12a9ede52e4c0b9a (patch)
treeef247900828ce5827be341ac3cb5b430c526e019 /youtube_dl
parent632256d9ecd86f17b370b2cbe3f50acdf961d6cc (diff)
[vk] Handle deleted videos
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
index 918bd1098..837c3167e 100644
--- a/youtube_dl/extractor/vk.py
+++ b/youtube_dl/extractor/vk.py
@@ -142,6 +142,10 @@ class VKIE(InfoExtractor):
raise ExtractorError('This video is only available for registered users, '
'use --username and --password options to provide account credentials.', expected=True)
+ if '<!>Unknown error' in info_page:
+ raise ExtractorError(
+ 'Video %s does not exist' % video_id, expected=True)
+
m_yt = re.search(r'src="(http://www.youtube.com/.*?)"', info_page)
if m_yt is not None:
self.to_screen('Youtube video detected')