Explorar el Código

[wat] Make geolock a warning (Fixes #3579)

Philipp Hagemeister hace 11 años
padre
commit
92a17d28ac
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      youtube_dl/extractor/wat.py

+ 2 - 1
youtube_dl/extractor/wat.py

@@ -47,7 +47,8 @@ class WatIE(InfoExtractor):
         video_info = self.download_video_info(real_id)
 
         if video_info.get('geolock'):
-            raise ExtractorError('This content is not available in your area', expected=True)
+            self.report_warning(
+                'This content is marked as not available in your area. Trying anyway ..')
 
         chapters = video_info['chapters']
         first_chapter = chapters[0]