diff --git a/resources/lib/viervijfzes/content.py b/resources/lib/viervijfzes/content.py index 23c4d9b..34dc9ce 100644 --- a/resources/lib/viervijfzes/content.py +++ b/resources/lib/viervijfzes/content.py @@ -366,7 +366,7 @@ class ContentApi: drm_key = data['drmKey']['S'] _LOGGER.debug('Fetching Authentication XML with drm_key %s', drm_key) - response_drm = self._get_url(self.API_GOPLAY + '/restricted/decode/%s' % drm_key, authentication=True) + response_drm = self._get_url(self.API_GOPLAY + '/video/xml/%s' % drm_key, authentication=True) data_drm = json.loads(response_drm) return ResolvedStream( diff --git a/tests/test_api.py b/tests/test_api.py index 381b790..90a8679 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -75,7 +75,7 @@ class TestApi(unittest.TestCase): @unittest.skipUnless(kodiutils.get_setting('username') and kodiutils.get_setting('password'), 'Skipping since we have no credentials.') def test_get_drm_stream(self): - resolved_stream = self._api.get_stream_by_uuid('2a17b793-7407-42b2-9851-5487db6d3a6a') # NCIS LA 10x6 + resolved_stream = self._api.get_stream_by_uuid('32ac67c6-9b15-4e3e-9440-6de04e586a6e') # NCIS 12x8 self.assertIsInstance(resolved_stream, ResolvedStream)