Compare commits
No commits in common. "a550e21b8c15beb67f91d5ec4763376cf1794e29" and "a96bf110da6ad25a8f651b4c1565b084ae6cd90c" have entirely different histories.
a550e21b8c
...
a96bf110da
|
@ -8,7 +8,6 @@ from .common import InfoExtractor
|
|||
from ..utils import (
|
||||
int_or_none,
|
||||
url_or_none,
|
||||
ExtractorError,
|
||||
)
|
||||
|
||||
|
||||
|
@ -80,11 +79,7 @@ class IplaIE(InfoExtractor):
|
|||
'Content-type': 'application/json'
|
||||
}
|
||||
|
||||
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']}")
|
||||
res = self._download_json('http://b2c-mobile.redefine.pl/rpc/navigation/', media_id, data=req, headers=headers)
|
||||
return res['result']['mediaItem']
|
||||
|
||||
def get_url(self, media_id, source_id):
|
||||
|
@ -98,6 +93,4 @@ class IplaIE(InfoExtractor):
|
|||
}
|
||||
|
||||
res = self._download_json('https://b2c-mobile.redefine.pl/rpc/drm/', media_id, data=req, headers=headers)
|
||||
if not res.get('result'):
|
||||
raise ExtractorError(f"Ipla said: {res['error']['message']} - {res['error']['data']['userMessage']}")
|
||||
return res['result']['url']
|
||||
|
|
Loading…
Reference in a new issue