mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-15 21:57:53 +01:00
[vk] Catch author blocked error message
Example link (video in blocked group): https://vk.com/search?c%5Bq%5D=%D0%9F%D1%80%D1%8B%D0%B6%D0%BE%D0%BA%20c%20%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%B2%20%D1%81%D1%82%D0%B8%D0%BB%D0%B5%20%D0%A7%D0%B5%D0%BB%D0%BE%D0%B2%D0%B5%D0%BA%D0%B0-%D0%BF%D0%B0%D1%83%D0%BA%D0%B0&c%5Bsection%5D=video&c%5Bsort%5D=2&z=video-10639516_456240611
This commit is contained in:
parent
36fce54816
commit
643dc0fcfe
@ -281,6 +281,11 @@ class VKIE(VKBaseIE):
|
|||||||
{
|
{
|
||||||
'url': 'http://new.vk.com/video205387401_165548505',
|
'url': 'http://new.vk.com/video205387401_165548505',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
# This video is no longer available, because its author has been blocked.
|
||||||
|
'url': 'https://vk.com/video-10639516_456240611',
|
||||||
|
'only_matching': True,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -328,6 +333,12 @@ class VKIE(VKBaseIE):
|
|||||||
|
|
||||||
r'<!>Access denied':
|
r'<!>Access denied':
|
||||||
'Access denied to video %s.',
|
'Access denied to video %s.',
|
||||||
|
|
||||||
|
r'<!>Видеозапись недоступна, так как её автор был заблокирован.':
|
||||||
|
'Video %s is no longer available, because its author has been blocked.',
|
||||||
|
|
||||||
|
r'<!>This video is no longer available, because its author has been blocked.':
|
||||||
|
'Video %s is no longer available, because its author has been blocked.',
|
||||||
}
|
}
|
||||||
|
|
||||||
for error_re, error_msg in ERRORS.items():
|
for error_re, error_msg in ERRORS.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user