youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 998e6cdba01ff54e2009d50c3026e7af0bb1c11a
parent 157e9e5aa5e2e461ec0e4f1e0875125a440d6d60
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 27 Mar 2015 03:05:08 +0600

[vimeo] Capture and output error message (#5294)

Diffstat:
Myoutube_dl/extractor/vimeo.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py @@ -244,6 +244,16 @@ class VimeoIE(VimeoBaseInfoExtractor): # and latter we extract those that are Vimeo specific. 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 try: try: