mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 19:33:59 +01:00
[veehd] Capture removed video message
This commit is contained in:
parent
d156a1d981
commit
d5bb814d34
|
@ -8,6 +8,7 @@
|
||||||
compat_urlparse,
|
compat_urlparse,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
ExtractorError,
|
||||||
clean_html,
|
clean_html,
|
||||||
get_element_by_id,
|
get_element_by_id,
|
||||||
)
|
)
|
||||||
|
@ -34,6 +35,10 @@ def _real_extract(self, url):
|
||||||
# See https://github.com/rg3/youtube-dl/issues/2102
|
# See https://github.com/rg3/youtube-dl/issues/2102
|
||||||
self._download_webpage(url, video_id, 'Requesting webpage')
|
self._download_webpage(url, video_id, 'Requesting webpage')
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
if 'This video has been removed<' in webpage:
|
||||||
|
raise ExtractorError('Video %s has been removed' % video_id, expected=True)
|
||||||
|
|
||||||
player_path = self._search_regex(
|
player_path = self._search_regex(
|
||||||
r'\$\("#playeriframe"\).attr\({src : "(.+?)"',
|
r'\$\("#playeriframe"\).attr\({src : "(.+?)"',
|
||||||
webpage, 'player path')
|
webpage, 'player path')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user