mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-05-21 21:28:23 +02:00
Adapt to new model (WIP)
This commit is contained in:
parent
2eb11c92fe
commit
4cf895ce41
3 changed files with 88 additions and 75 deletions
script
|
@ -3,6 +3,10 @@ class Ambito:
|
|||
self.name = name
|
||||
self.channels = channels
|
||||
|
||||
def add_channels(self, channels_to_add):
|
||||
if self.channels:
|
||||
self.channels.append(channels_to_add)
|
||||
|
||||
def __channels_to_json__(self):
|
||||
channel_list = []
|
||||
for channel in self.channels:
|
||||
|
@ -27,4 +31,4 @@ class Ambito:
|
|||
return self.__channels_to_m3u8__()
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue