[srgssr] Improve geo restriction detection
[youtube-dl] / youtube_dl / extractor / svt.py
index fb0a4b24ef5bf65ff13ca2288395f09540e71d48..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 = {}
@@ -129,7 +130,7 @@ class SVTPlayIE(SVTBaseIE):
             'ext': 'mp4',
             'title': 'Flygplan till Haile Selassie',
             'duration': 3527,
-            'thumbnail': 're:^https?://.*[\.-]jpg$',
+            'thumbnail': r're:^https?://.*[\.-]jpg$',
             'age_limit': 0,
             'subtitles': {
                 'sv': [{