浏览代码

[theplatform] Fix geographic restriction check

Philipp Hagemeister 11 年之前
父节点
当前提交
48462108f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/theplatform.py

+ 1 - 1
youtube_dl/extractor/theplatform.py

@@ -38,7 +38,7 @@ class ThePlatformIE(InfoExtractor):
             error_msg = next(
             error_msg = next(
                 n.attrib['abstract']
                 n.attrib['abstract']
                 for n in meta.findall(_x('.//smil:ref'))
                 for n in meta.findall(_x('.//smil:ref'))
-                if n.attrib['title'] == u'Geographic Restriction')
+                if n.attrib.get('title') == u'Geographic Restriction')
         except StopIteration:
         except StopIteration:
             pass
             pass
         else:
         else: