mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
[viewster] Detect video geo restriction
This commit is contained in:
parent
cccedc1aa4
commit
9612f23399
@ -140,6 +140,10 @@ def _real_extract(self, url):
|
|||||||
f['height'] = int_or_none(self._search_regex(
|
f['height'] = int_or_none(self._search_regex(
|
||||||
r'^(\d+)[pP]$', format_id, 'height', default=None))
|
r'^(\d+)[pP]$', format_id, 'height', default=None))
|
||||||
formats.append(f)
|
formats.append(f)
|
||||||
|
|
||||||
|
if not formats and not info.get('LanguageSets') and not info.get('VODSettings'):
|
||||||
|
self.raise_geo_restricted()
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
synopsis = info.get('Synopsis', {})
|
synopsis = info.get('Synopsis', {})
|
||||||
|
Loading…
Reference in New Issue
Block a user