mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-02 12:02:49 -05:00
Merge pull request #801 from expleo/add_referer_support
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user