fix resolverdns kodi 18, filmontv kodi 19

This commit is contained in:
marco
2020-08-19 09:58:14 +02:00
parent 8fac8b78f6
commit b3736143bc
4 changed files with 5 additions and 2 deletions

View File

@@ -134,6 +134,7 @@ def get_system_platform():
platform = "osx"
return platform
def is_autorun_enabled():
try:
if "xbmc.executebuiltin('RunAddon(plugin.video.kod)')" in open(os.path.join(xbmc.translatePath('special://userdata'),'autoexec.py')).read():

View File

@@ -39,7 +39,8 @@ def getEpg():
downloadtools.downloadfile(host, archiveName)
support.log('opening gzip and writing xml')
with gzip.GzipFile(fileobj=filetools.file_open(archiveName, mode='rb', vfs=False)) as f:
guide = f.read().replace('\n', ' ').replace('><', '>\n<')
guide = f.read().decode('utf-8')
guide = guide.replace('\n', ' ').replace('><', '>\n<')
with open(xmlName, 'w') as f:
f.write(guide)
# else:

View File

@@ -7,6 +7,7 @@ if PY3:
import _ssl
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
else:
import urlparse
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
from lib.requests_toolbelt.adapters import host_header_ssl

View File

@@ -28,7 +28,7 @@ def mainlist(item):
Item(channel=item.channel, action="list_tvshows",title=config.get_localized_string(60600),
category=config.get_localized_string(70271), thumbnail=thumb("videolibrary_tvshow"),
context=[{"channel":"videolibrary", "action":"update_videolibrary", "title":config.get_localized_string(70269)}]),
Item(channel='shortcuts', action="SettingOnPosition", category=2, setting=1, thumbnail = thumb("setting_0"))]
Item(channel='shortcuts', action="SettingOnPosition", title=config.get_localized_string(60542), category=2, setting=1, thumbnail = thumb("setting_0"))]
return itemlist