From: Philipp Hagemeister Date: Mon, 16 Dec 2013 02:43:45 +0000 (+0100) Subject: [theplatform] Fix geographic restriction check X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=48462108f3b1937bcaa19a4752246748a5fc9360;p=youtube-dl [theplatform] Fix geographic restriction check --- 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: