]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[svt] Improve geo restriction detection and use geo bypass mechanism
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Feb 2017 11:52:33 +0000 (18:52 +0700)
committerSergey M <dstftw@gmail.com>
Sat, 18 Feb 2017 21:10:08 +0000 (05:10 +0800)
youtube_dl/extractor/svt.py

index 10cf808857e231cee482434010161a93eee85027..f2a2200bf87180f47ada72857a7eb617e0e0138e 100644 (file)
@@ -38,7 +38,8 @@ class SVTBaseIE(InfoExtractor):
                     'url': vurl,
                 })
         if not formats and video_info.get('rights', {}).get('geoBlockedSweden'):
-            self.raise_geo_restricted('This video is only available in Sweden')
+            self.raise_geo_restricted(
+                'This video is only available in Sweden', countries=['SE'])
         self._sort_formats(formats)
 
         subtitles = {}