mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 23:33:10 +00:00
[skyitalia] added geoblock msg
This commit is contained in:
parent
920ad13673
commit
e61f360157
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ class SkyItaliaBaseIE(InfoExtractor):
|
||||||
'high': [854, 480],
|
'high': [854, 480],
|
||||||
'hd': [1280, 720]
|
'hd': [1280, 720]
|
||||||
}
|
}
|
||||||
|
_GEO_BYPASS = False
|
||||||
|
|
||||||
def _extract_video_id(self, url):
|
def _extract_video_id(self, url):
|
||||||
webpage = self._download_webpage(url, 'skyitalia')
|
webpage = self._download_webpage(url, 'skyitalia')
|
||||||
|
@ -43,6 +44,9 @@ class SkyItaliaBaseIE(InfoExtractor):
|
||||||
'height': r[1]
|
'height': r[1]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if not formats and video_data.get('geob') == 1:
|
||||||
|
self.raise_geo_restricted(countries=['IT'])
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
title = video_data.get('title')
|
title = video_data.get('title')
|
||||||
thumb = video_data.get('thumb')
|
thumb = video_data.get('thumb')
|
||||||
|
|
Loading…
Reference in a new issue