mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[vrt] Detect geo restriction
This commit is contained in:
parent
80e59a0d5d
commit
63bf4f0dc0
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ class VRTIE(InfoExtractor):
|
||||||
formats.extend(self._extract_f4m_formats(
|
formats.extend(self._extract_f4m_formats(
|
||||||
'%s/manifest.f4m' % mobj.group('src'),
|
'%s/manifest.f4m' % mobj.group('src'),
|
||||||
video_id, f4m_id='hds', fatal=False))
|
video_id, f4m_id='hds', fatal=False))
|
||||||
|
|
||||||
|
if not formats and 'data-video-geoblocking="true"' in webpage:
|
||||||
|
self.raise_geo_restricted('This video is only available in Belgium')
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
title = self._og_search_title(webpage)
|
title = self._og_search_title(webpage)
|
||||||
|
|
Loading…
Reference in a new issue