Add support for Play7 (#86)

This commit is contained in:
Michaël Arnauts 2021-04-06 18:07:15 +02:00 committed by GitHub
parent f688036559
commit d5551f4e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 16 additions and 12 deletions

View File

@ -50,16 +50,16 @@ CHANNELS = OrderedDict([
),
],
)),
# ('Play7', dict(
# name='Play7',
# epg_id='zeven',
# url='https://www.goplay.be',
# logo='play7.png',
# background='play7-background.png',
# iptv_preset=7,
# iptv_id='play7.be',
# youtube=[],
# )),
('Play7', dict(
name='Play7',
epg_id='zeven',
url='https://www.goplay.be',
logo='play7.png',
background='play7-background.png',
iptv_preset=17,
iptv_id='play7.be',
youtube=[],
)),
('GoPlay', dict(
name='Go Play',
url='https://www.goplay.be',

View File

@ -357,6 +357,9 @@ class ContentApi:
response = self._get_url(self.API_VIERVIJFZES + '/content/%s' % uuid, authentication=True)
data = json.loads(response)
if not data:
raise UnavailableException
if 'videoDash' in data:
# DRM protected stream
# See https://docs.unified-streaming.com/documentation/drm/buydrm.html#setting-up-the-client

View File

@ -72,7 +72,8 @@ class EpgApi:
EPG_ENDPOINTS = {
'Play4': 'https://www.goplay.be/api/epg/vier/{date}',
'Play5': 'https://www.goplay.be/api/epg/vijf/{date}',
'Play6': 'https://www.goplay.be/api/epg/zes/{date}'
'Play6': 'https://www.goplay.be/api/epg/zes/{date}',
'Play7': 'https://www.goplay.be/api/epg/zeven/{date}',
}
EPG_NO_BROADCAST = 'Geen uitzending'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
resources/logos/play7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -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('01998ce7-b2ad-4524-a786-33d419a29d7b') # CSI 12x22
resolved_stream = self._api.get_stream_by_uuid('c17ff150-368a-4628-b81f-c73d78c06992') # NCIS LA 9x24
self.assertIsInstance(resolved_stream, ResolvedStream)