don't raise Error for No AssetType/Format Matches
This commit is contained in:
parent
a7ce8f16c4
commit
63d6944ad3
@ -38,7 +38,8 @@ class ThePlatformBaseIE(OnceIE):
|
|||||||
headers=self.geo_verification_headers())
|
headers=self.geo_verification_headers())
|
||||||
error_element = find_xpath_attr(meta, _x('.//smil:ref'), 'src')
|
error_element = find_xpath_attr(meta, _x('.//smil:ref'), 'src')
|
||||||
if error_element is not None and error_element.attrib['src'].startswith(
|
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)
|
raise ExtractorError(error_element.attrib['abstract'], expected=True)
|
||||||
|
|
||||||
smil_formats = self._parse_smil_formats(
|
smil_formats = self._parse_smil_formats(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user