From c2c599133d268dbc2577c02e9a06b2bbd3f7f85a Mon Sep 17 00:00:00 2001 From: Jacobo Rodriguez <> Date: Fri, 14 Jun 2019 06:21:59 +0200 Subject: [PATCH] Remove TYPE value --- script/channel.py | 4 +--- script/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/script/channel.py b/script/channel.py index 683c079f..8ef29e58 100644 --- a/script/channel.py +++ b/script/channel.py @@ -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): diff --git a/script/utils.py b/script/utils.py index b4771055..5da21c1d 100755 --- a/script/utils.py +++ b/script/utils.py @@ -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: