mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2024-11-22 08:53:35 +01:00
Remove TYPE value
This commit is contained in:
parent
ce8cc6562a
commit
c2c599133d
2 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
# TODO Create TVChannel and RadioChannel
|
||||
class Channel:
|
||||
def __init__(self, name, web, resolution, logo, epg_id, extra_info, type):
|
||||
def __init__(self, name, web, resolution, logo, epg_id, extra_info):
|
||||
self.name = name
|
||||
self.web = web
|
||||
self.resolution = resolution
|
||||
|
@ -8,7 +8,6 @@ class Channel:
|
|||
self.epg_id = epg_id
|
||||
self.options = []
|
||||
self.extra_info = extra_info
|
||||
self.type = type
|
||||
|
||||
def add_option(self, format, url, info):
|
||||
self.options.append(self.Web(format, url, info))
|
||||
|
@ -52,7 +51,6 @@ class Channel:
|
|||
"epg_id": self.epg_id,
|
||||
"options": self.__options_to_json__(),
|
||||
"extra_info": self.extra_info,
|
||||
"type": self.type
|
||||
}
|
||||
|
||||
def to_m3u8(self, ambit_name, option):
|
||||
|
|
|
@ -64,7 +64,7 @@ def get_tv_channels_from_part(text):
|
|||
else:
|
||||
item_extra_info = item_extra_info.split(",")
|
||||
|
||||
channel = Channel(item_name, item_web, item_resolution, item_logo, item_epg, item_extra_info, "Video")
|
||||
channel = Channel(item_name, item_web, item_resolution, item_logo, item_epg, item_extra_info)
|
||||
item_options = item_options.split(" - ")
|
||||
if len(item_options) > 0 and item_options[0] != "-":
|
||||
for option in item_options:
|
||||
|
@ -109,7 +109,7 @@ def get_radio_channels_from_part(text):
|
|||
else:
|
||||
item_extra_info = item_extra_info.split(",")
|
||||
|
||||
channel = Channel(item_name, item_web, "", item_logo, "", item_extra_info, "Audio")
|
||||
channel = Channel(item_name, item_web, "", item_logo, "", item_extra_info)
|
||||
item_options = item_options.split(" - ")
|
||||
if len(item_options) > 0 and item_options[0] != "-":
|
||||
for option in item_options:
|
||||
|
|
Loading…
Reference in a new issue