mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-04-19 07:30:01 +02: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 channel in self.channels:
|
||||||
for option in channel.get_options():
|
for option in channel.get_options():
|
||||||
if option.is_m3u8_valid():
|
if option.is_m3u8_valid():
|
||||||
channels_list += channel.to_m3u8(option)
|
channels_list += channel.to_m3u8(self.name, option)
|
||||||
return channels_list
|
return channels_list
|
||||||
|
|
||||||
def to_m3u8(self):
|
def to_m3u8(self):
|
||||||
|
|
|
@ -54,9 +54,9 @@
|
||||||
"options": self.__options_to_json__()
|
"options": self.__options_to_json__()
|
||||||
}
|
}
|
||||||
|
|
||||||
def to_m3u8(self, option):
|
def to_m3u8(self, ambit, option):
|
||||||
return ('#EXTINF:-1 tvg-id="' + self.epg_id + '" tvg-logo="' + self.logo + '", ' + self.name + "\n" +
|
return ('#EXTINF:-1 tvg-id="' + self.epg_id + '" tvg-logo="' + self.logo + '" group-title="' + ambit
|
||||||
option.get_url() + "\n")
|
+ '", ' + self.name + "\n" + option.get_url() + "\n")
|
||||||
|
|
||||||
class Web:
|
class Web:
|
||||||
format = None
|
format = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue