From 9aedaa171bdaf7ab275da16b807e5ae43dc2b363 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Wed, 29 May 2019 18:54:52 +0200 Subject: [PATCH 1/3] deltabit: common workaround kodi 18 --- servers/deltabit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/deltabit.py b/servers/deltabit.py index ab20f44c..9ac15b7b 100644 --- a/servers/deltabit.py +++ b/servers/deltabit.py @@ -30,6 +30,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= sources = scrapertools.find_single_match(data, 'sources: \[([^\]]+)\]') for media_url in scrapertools.find_multiple_matches(sources, '"([^"]+)"'): + media_url = media_url.replace('https:', 'http:') ext = scrapertools.get_filename_from_url(media_url)[-4:] video_urls.append(["%s [deltabit]" % (ext), media_url]) return video_urls From 8b5236ad9c961a05103a3dc63af8856bed557ce4 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Wed, 29 May 2019 21:04:07 +0200 Subject: [PATCH 2/3] fix crash on settings server --- core/channeltools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/channeltools.py b/core/channeltools.py index af001487..db25ce37 100644 --- a/core/channeltools.py +++ b/core/channeltools.py @@ -134,6 +134,8 @@ def get_channel_json(channel_name): channel_path = filetools.join(config.get_runtime_path(), "channels", channel_name + ".json") if not os.path.isfile(channel_path): channel_path = filetools.join(config.get_runtime_path(), "specials", channel_name + ".json") + if not os.path.isfile(channel_path): + channel_path = filetools.join(config.get_runtime_path(), "servers", channel_name + ".json") if filetools.isfile(channel_path): # logger.info("channel_data=" + channel_path) channel_json = jsontools.load(filetools.read(channel_path)) From a897428753e8ccc71e896ff2d52726602460586f Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Wed, 29 May 2019 21:08:54 +0200 Subject: [PATCH 3/3] little fix on side_menu --- specials/side_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specials/side_menu.py b/specials/side_menu.py index 1de8ef50..a8c27aa8 100644 --- a/specials/side_menu.py +++ b/specials/side_menu.py @@ -85,7 +85,7 @@ def get_start_page(): config.get_localized_string(59976): 'latino', config.get_localized_string(70171): 'torrent', } - category = dictCategory[config.get_setting("category")] + category = dictCategory[config.get_localized_string(config.get_setting("category"))] custom_start= config.get_setting("custom_start") #if category != 'definido':