Merge pull request #801 from expleo/add_referer_support
[youtube-dl] / youtube_dl / InfoExtractors.py
index 4d145dfa101b0118ccc15a6d81d4098568ab8276..3450f0d17e19d95d67645a50c79f0680b05379cc 100755 (executable)
@@ -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