浏览代码

[tvplay] Don't raise an exception if `is_geo_blocked` is True

Videos which return `is_geo_blocked' to be True can actually be downloaded from
the country to which the video is restricted
Naglis Jonaitis 11 年之前
父节点
当前提交
158731f83e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube_dl/extractor/tvplay.py

+ 2 - 2
youtube_dl/extractor/tvplay.py

@@ -182,8 +182,8 @@ class TVPlayIE(InfoExtractor):
             'http://playapi.mtgx.tv/v1/videos/%s' % video_id, video_id, 'Downloading video JSON')
 
         if video['is_geo_blocked']:
-            raise ExtractorError(
-                'This content is not available in your country due to copyright reasons', expected=True)
+            self.report_warning(
+                'This content might not be available in your country due to copyright reasons')
 
         streams = self._download_json(
             'http://playapi.mtgx.tv/v1/videos/stream/%s' % video_id, video_id, 'Downloading streams JSON')