[ipla] state the DRM requirement clearly

merge-requests/6/head
Lauren Liberda 2021-08-07 02:23:28 +02:00
parent 1ae67712e8
commit a550e21b8c
1 changed files with 2 additions and 0 deletions

View File

@ -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']