1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-05-21 05:08:22 +02:00

support to enigma2

This commit is contained in:
Marc 2019-01-26 15:40:27 +01:00
parent 4cd9036814
commit 1a150636d2
4 changed files with 51 additions and 10 deletions
script

View file

@ -30,5 +30,18 @@ class Ambito:
def to_m3u8(self):
return self.__channels_to_m3u8__()
def __channels_to_enigma2__(self):
channels_list = ""
counter = 3
for channel in self.channels:
for option in channel.get_options():
if option.is_m3u8_valid():
channels_list += channel.to_enigma2(option, counter)
counter += 2
return channels_list
def to_enigma2(self):
return self.__channels_to_enigma2__()
def __str__(self):
return self.name