don't raise Error for No AssetType/Format Matches

This commit is contained in:
Argn0 2017-06-27 14:46:04 +02:00 committed by GitHub
parent a7ce8f16c4
commit 63d6944ad3

View File

@ -38,7 +38,8 @@ class ThePlatformBaseIE(OnceIE):
headers=self.geo_verification_headers())
error_element = find_xpath_attr(meta, _x('.//smil:ref'), 'src')
if error_element is not None and error_element.attrib['src'].startswith(
'http://link.theplatform.com/s/errorFiles/Unavailable.'):
'http://link.theplatform.com/s/errorFiles/Unavailable.') and not error_element.attrib[
'title'].startswith('No AssetType'):
raise ExtractorError(error_element.attrib['abstract'], expected=True)
smil_formats = self._parse_smil_formats(