aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-16 03:43:45 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-16 03:43:45 +0100
commit48462108f3b1937bcaa19a4752246748a5fc9360 (patch)
tree0d737ef138ff28b00b177e675a7e78cbdb9c714f
parentf8b56e95b82d9cb783c5a789b6b2770efff57b73 (diff)
downloadyoutube-dl-48462108f3b1937bcaa19a4752246748a5fc9360.tar.xz
[theplatform] Fix geographic restriction check
-rw-r--r--youtube_dl/extractor/theplatform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 650d7517f..cec65261b 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -38,7 +38,7 @@ class ThePlatformIE(InfoExtractor):
error_msg = next(
n.attrib['abstract']
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:
pass
else: