test
This commit is contained in:
parent
272fa33450
commit
9fb6efe6c9
@ -50,6 +50,11 @@
|
||||
"value": "English",
|
||||
"config_file": true,
|
||||
"config_web": true
|
||||
},
|
||||
"filter_category":{
|
||||
"value": "none",
|
||||
"config_file": true,
|
||||
"config_web": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,14 +7,15 @@ class OriginService():
|
||||
|
||||
self.channels_json_url = "https://iptv-org.github.io/iptv/channels.json"
|
||||
|
||||
self.filter_dict = {
|
||||
"country": [],
|
||||
"language": []
|
||||
}
|
||||
self.filter_dict = {}
|
||||
self.setup_filters()
|
||||
|
||||
def setup_filters(self):
|
||||
for filter in ["country", "language"]:
|
||||
|
||||
for x in ["country", "language", "category"]:
|
||||
self.filter_dict[x] = []
|
||||
|
||||
for filter in list(self.filter_dict.keys()):
|
||||
|
||||
filterconf = self.fhdhr.config.dict["origin"]["filter_%s" % filter]
|
||||
if filterconf:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user