From 48462108f3b1937bcaa19a4752246748a5fc9360 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 16 Dec 2013 03:43:45 +0100 Subject: [PATCH] [theplatform] Fix geographic restriction check --- youtube_dl/extractor/theplatform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _get_info(self, video_id): 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: