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:
parent
9c270bbc6e
commit
fa1bdd0088
2 changed files with 4 additions and 4 deletions
script
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue