From a550e21b8c15beb67f91d5ec4763376cf1794e29 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Sat, 7 Aug 2021 02:23:28 +0200 Subject: [PATCH] [ipla] state the DRM requirement clearly --- haruhi_dl/extractor/ipla.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/haruhi_dl/extractor/ipla.py b/haruhi_dl/extractor/ipla.py index 244cd17ac..384b35aea 100644 --- a/haruhi_dl/extractor/ipla.py +++ b/haruhi_dl/extractor/ipla.py @@ -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']