A feature-rich command-line audio/video downloader
[vrt] Detect geo restriction
Sergey M․63bf4f0dc050
diff --git a/youtube_dl/extractor/vrt.py b/youtube_dl/extractor/vrt.pyindex 522e2bbc86..2b6bae89bd 100644--- a/youtube_dl/extractor/vrt.py+++ b/youtube_dl/extractor/vrt.py@@ -79,6 +79,10 @@ class VRTIE(InfoExtractor):formats.extend(self._extract_f4m_formats('%s/manifest.f4m' % mobj.group('src'),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)title = self._og_search_title(webpage)