From 790646060697ee26a9d9943e0e1ee88b95a30799 Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Fri, 28 Apr 2017 02:48:30 +0200 Subject: [PATCH] [vevo] raise error on geo restricted videos --- youtube_dl/extractor/vevo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py index 19cf34a6b..b513ee7a9 100644 --- a/youtube_dl/extractor/vevo.py +++ b/youtube_dl/extractor/vevo.py @@ -228,6 +228,8 @@ class VevoIE(VevoBaseIE): version = self._VERSIONS.get(video_version.get('version'), 'generic') version_url = video_version.get('url') if not version_url: + if video_version.get('errorCode') == 'video-not-viewable-in-country': + raise self.raise_geo_restricted() continue if '.ism' in version_url: