1
0
Fork 0
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:
Marc 2019-01-07 23:45:27 +01:00
parent 2eb11c92fe
commit 4cf895ce41
3 changed files with 88 additions and 75 deletions
script

View file

@ -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