mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 15:20:47 +00:00
[vk] Handle deleted videos
This commit is contained in:
parent
632256d9ec
commit
9334f8f17a
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,10 @@ def _real_extract(self, url):
|
||||||
raise ExtractorError('This video is only available for registered users, '
|
raise ExtractorError('This video is only available for registered users, '
|
||||||
'use --username and --password options to provide account credentials.', expected=True)
|
'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)
|
m_yt = re.search(r'src="(http://www.youtube.com/.*?)"', info_page)
|
||||||
if m_yt is not None:
|
if m_yt is not None:
|
||||||
self.to_screen('Youtube video detected')
|
self.to_screen('Youtube video detected')
|
||||||
|
|
Loading…
Reference in a new issue