plugin.video.viervijfzes/resources/lib/viervijfzes/__init__.py

97 lines
2.6 KiB
Python
Raw Normal View History

2020-03-19 16:45:31 +01:00
# -*- coding: utf-8 -*-
""" GoPlay API """
2020-03-19 16:45:31 +01:00
from __future__ import absolute_import, division, unicode_literals
from collections import OrderedDict
CHANNELS = OrderedDict([
2023-07-21 22:28:50 +02:00
('Play4', {
'name': 'Play4',
2023-09-21 09:52:57 +02:00
'url': 'live-kijken/play-4',
2023-07-21 22:28:50 +02:00
'epg_id': 'vier',
'logo': 'play4.png',
'background': 'play4-background.png',
'iptv_preset': 4,
'iptv_id': 'play4.be',
'youtube': [
{'label': 'GoPlay', 'logo': 'goplay.png', 'path': 'plugin://plugin.video.youtube/user/viertv/'},
]
}),
('Play5', {
'name': 'Play5',
2023-09-21 09:52:57 +02:00
'url': 'live-kijken/play-5',
2023-07-21 22:28:50 +02:00
'epg_id': 'vijf',
'logo': 'play5.png',
'background': 'play5-background.png',
'iptv_preset': 5,
'iptv_id': 'play5.be',
'youtube': [
{'label': 'GoPlay', 'logo': 'goplay.png', 'path': 'plugin://plugin.video.youtube/user/viertv/'},
]
}),
('Play6', {
'name': 'Play6',
2023-09-21 09:52:57 +02:00
'url': 'live-kijken/play-6',
2023-07-21 22:28:50 +02:00
'epg_id': 'zes',
'logo': 'play6.png',
'background': 'play6-background.png',
'iptv_preset': 6,
'iptv_id': 'play6.be',
'youtube': [
{'label': 'GoPlay', 'logo': 'goplay.png', 'path': 'plugin://plugin.video.youtube/user/viertv/'},
]
}),
('Play7', {
'name': 'Play7',
2023-09-21 09:52:57 +02:00
'url': 'live-kijken/play-7',
2023-07-21 22:28:50 +02:00
'epg_id': 'zeven',
'logo': 'play7.png',
'background': 'play7-background.png',
'iptv_preset': 17,
'iptv_id': 'play7.be',
'youtube': []
}),
2024-05-08 15:20:33 +02:00
('PlayCrime', {
'name': 'PlayCrime',
'url': 'live-kijken/play-crime',
'epg_id': 'crime',
'logo': 'playcrime.png',
'background': 'playcrime-background.png',
'iptv_preset': 18,
'iptv_id': 'playcrime.be',
'youtube': []
}),
2023-07-21 22:28:50 +02:00
('GoPlay', {
'name': 'Go Play',
'url': 'https://www.goplay.be',
'logo': 'goplay.png',
'background': 'goplay-background.png',
'youtube': []
})
2020-03-19 16:45:31 +01:00
])
STREAM_DICT = {
'codec': 'h264',
2020-03-22 10:39:49 +01:00
'height': 544,
'width': 960,
2020-03-19 16:45:31 +01:00
}
class ResolvedStream:
""" Defines a stream that we can play"""
2023-07-21 22:16:07 +02:00
def __init__(self, uuid=None, url=None, stream_type=None, license_key=None):
"""
:type uuid: str
:type url: str
:type stream_type: str
2023-07-21 22:16:07 +02:00
:type license_key: str
"""
self.uuid = uuid
self.url = url
self.stream_type = stream_type
2023-07-21 22:16:07 +02:00
self.license_key = license_key
def __repr__(self):
return "%r" % self.__dict__