Commit 9638569e authored by Lauren N. Liberda's avatar Lauren N. Liberda Committed by Dominika Liberda
Browse files

[ipla] state the DRM requirement clearly

parent db05777f
......@@ -82,6 +82,8 @@ class IplaIE(InfoExtractor):
res = self._download_json('', 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']
Supports Markdown
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