Fix Filtri Community Channels
This commit is contained in:
@@ -82,6 +82,7 @@ def show_channels(item):
|
|||||||
def show_menu(item):
|
def show_menu(item):
|
||||||
support.log()
|
support.log()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
# support.dbg()
|
||||||
|
|
||||||
if item.menu: # if second level menu
|
if item.menu: # if second level menu
|
||||||
get_sub_menu(item, item.menu, 'level2', itemlist)
|
get_sub_menu(item, item.menu, 'level2', itemlist)
|
||||||
@@ -596,8 +597,10 @@ def load_json(item):
|
|||||||
json_file = httptools.downloadpage(url).data
|
json_file = httptools.downloadpage(url).data
|
||||||
else:
|
else:
|
||||||
json_file = open(url, "r").read()
|
json_file = open(url, "r").read()
|
||||||
|
if item.filterkey:
|
||||||
json = jsontools.load(json_file, object_pairs_hook=OrderedDict)
|
json = jsontools.load(json_file)
|
||||||
|
else:
|
||||||
|
json = jsontools.load(json_file, object_pairs_hook=OrderedDict)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
json = {}
|
json = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user