mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[vimeo] Capture and output error message (#5294)
This commit is contained in:
parent
157e9e5aa5
commit
998e6cdba0
1 changed files with 10 additions and 0 deletions
|
@ -244,6 +244,16 @@ def _real_extract(self, url):
|
||||||
# and latter we extract those that are Vimeo specific.
|
# and latter we extract those that are Vimeo specific.
|
||||||
self.report_extraction(video_id)
|
self.report_extraction(video_id)
|
||||||
|
|
||||||
|
vimeo_config = self._search_regex(
|
||||||
|
r'vimeo\.config\s*=\s*({.+?});', webpage,
|
||||||
|
'vimeo config', default=None)
|
||||||
|
if vimeo_config:
|
||||||
|
seed_status = self._parse_json(vimeo_config, video_id).get('seed_status', {})
|
||||||
|
if seed_status.get('state') == 'failed':
|
||||||
|
raise ExtractorError(
|
||||||
|
'%s returned error: %s' % (self.IE_NAME, seed_status['title']),
|
||||||
|
expected=True)
|
||||||
|
|
||||||
# Extract the config JSON
|
# Extract the config JSON
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue