1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-03-24 10:36:30 +01:00

Add ambit to m3u8

This commit is contained in:
Marc 2018-09-23 12:00:20 +02:00
parent 9c270bbc6e
commit fa1bdd0088
2 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ class Ambito:
for channel in self.channels:
for option in channel.get_options():
if option.is_m3u8_valid():
channels_list += channel.to_m3u8(option)
channels_list += channel.to_m3u8(self.name, option)
return channels_list
def to_m3u8(self):

View file

@ -54,9 +54,9 @@
"options": self.__options_to_json__()
}
def to_m3u8(self, option):
return ('#EXTINF:-1 tvg-id="' + self.epg_id + '" tvg-logo="' + self.logo + '", ' + self.name + "\n" +
option.get_url() + "\n")
def to_m3u8(self, ambit, option):
return ('#EXTINF:-1 tvg-id="' + self.epg_id + '" tvg-logo="' + self.logo + '" group-title="' + ambit
+ '", ' + self.name + "\n" + option.get_url() + "\n")
class Web:
format = None