Преглед на файлове

[theplatform] Fix geographic restriction check

Philipp Hagemeister преди 12 години
родител
ревизия
48462108f3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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: