Skip to content

A feature-rich command-line audio/video downloader

[theplatform] Fix geographic restriction check

Philipp Hagemeister48462108f3b1
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 650d7517f8..cec65261bf 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: