aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-11-03 10:01:37 +0100
committerGitHub <noreply@github.com>2020-11-03 10:01:37 +0100
commit4481cfb570968fdbfec0f21fe323ee91d0a445a0 (patch)
treeb1d0091618843d013d447277e7ed71cae285309c
parent167c108f7072a8392c509e5e8b9f84c0e0c0bb28 (diff)
parente61f360157dfa51f2fd1cbc089c0c9a0680428a1 (diff)
downloadhypervideo-pre-4481cfb570968fdbfec0f21fe323ee91d0a445a0.tar.lz
hypervideo-pre-4481cfb570968fdbfec0f21fe323ee91d0a445a0.tar.xz
hypervideo-pre-4481cfb570968fdbfec0f21fe323ee91d0a445a0.zip
Merge pull request #82 from nixxo/skyitalia
[skyitalia] added geoblock msg
-rw-r--r--youtube_dlc/extractor/skyitalia.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/skyitalia.py b/youtube_dlc/extractor/skyitalia.py
index 3c7bd465d..22a6be2be 100644
--- a/youtube_dlc/extractor/skyitalia.py
+++ b/youtube_dlc/extractor/skyitalia.py
@@ -13,6 +13,7 @@ class SkyItaliaBaseIE(InfoExtractor):
'high': [854, 480],
'hd': [1280, 720]
}
+ _GEO_BYPASS = False
def _extract_video_id(self, url):
webpage = self._download_webpage(url, 'skyitalia')
@@ -43,6 +44,9 @@ class SkyItaliaBaseIE(InfoExtractor):
'height': r[1]
})
+ if not formats and video_data.get('geob') == 1:
+ self.raise_geo_restricted(countries=['IT'])
+
self._sort_formats(formats)
title = video_data.get('title')
thumb = video_data.get('thumb')