Add support for Play7 (#86)
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 13 KiB |
BIN
resources/logos/play7-background.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
resources/logos/play7.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
@ -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)
|
||||
|
||||
|
||||
|