[NBC/ThePlatform/Generic] Add a generic detector for NBCSportsVPlayer and enhance error detection in ThePlatformIE

This commit is contained in:
Yen Chi Hsuan 2015-03-31 03:36:09 +08:00
parent 1d31e7a2fc
commit a2edf2e7ff
3 changed files with 17 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class ThePlatformIE(InfoExtractor):
error_msg = next(
n.attrib['abstract']
for n in meta.findall(_x('.//smil:ref'))
if n.attrib.get('title') == 'Geographic Restriction')
if n.attrib.get('title') == 'Geographic Restriction' or n.attrib.get('title') == 'Expired')
except StopIteration:
pass
else: