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:
parent
4cd9036814
commit
1a150636d2
4 changed files with 51 additions and 10 deletions
script
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue