Merge pull request #801 from expleo/add_referer_support

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-04-26 19:25:17 +02:00
commit 3820df0106
3 changed files with 13 additions and 1 deletions

View file

@ -1093,7 +1093,10 @@ class VimeoIE(InfoExtractor):
config = webpage.split(' = {config:')[1].split(',assets:')[0]
config = json.loads(config)
except:
self._downloader.report_error(u'unable to extract info section')
if re.search('The creator of this video has not given you permission to embed it on this domain.', webpage):
self._downloader.report_error(u'The author has restricted the access to this video, try with the "--referer" option')
else:
self._downloader.report_error(u'unable to extract info section')
return
# Extract title