aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-04-26 19:25:17 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-04-26 19:34:32 +0200
commit3820df0106d6065f50cc1eb90823906410dc9543 (patch)
tree71e3da6ac02dfc3e48aa206aa09ce886ed8c6a47 /youtube_dl/InfoExtractors.py
parentfa70605db287fd74f7d32b966ecca56260c651a0 (diff)
parent59cc5d9380ee6ffc9032c9a3873b006a824ae934 (diff)
downloadyoutube-dl-3820df0106d6065f50cc1eb90823906410dc9543.tar.xz
Merge pull request #801 from expleo/add_referer_support
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-xyoutube_dl/InfoExtractors.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 4d145dfa1..3450f0d17 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -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