1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00

[vk] Handle deleted videos

This commit is contained in:
Sergey M․ 2014-10-28 21:06:07 +07:00
parent 632256d9ec
commit 9334f8f17a

View file

@ -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')