Commit a550e21b authored by Lauren Liberda's avatar Lauren Liberda
Browse files

[ipla] state the DRM requirement clearly

parent 1ae67712
Pipeline #464 passed with stage
in 29 minutes and 51 seconds
......@@ -82,6 +82,8 @@ class IplaIE(InfoExtractor):
res = self._download_json('https://b2c-mobile.redefine.pl/rpc/navigation/', media_id, data=req, headers=headers)
if not res.get('result'):
if res['error']['code'] == 13404:
raise ExtractorError('Video requires DRM protection', expected=True)
raise ExtractorError(f"Ipla said: {res['error']['message']} - {res['error']['data']['userMessage']}")
return res['result']['mediaItem']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment