mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[theplatform] Fix geographic restriction check
This commit is contained in:
parent
f8b56e95b8
commit
48462108f3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def _get_info(self, video_id):
|
||||||
error_msg = next(
|
error_msg = next(
|
||||||
n.attrib['abstract']
|
n.attrib['abstract']
|
||||||
for n in meta.findall(_x('.//smil:ref'))
|
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:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue