Explorar o código

[theplatform] Fix geographic restriction check

Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
48462108f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(
                 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: