fix resolverdns kodi 18, filmontv kodi 19
This commit is contained in:
@@ -134,6 +134,7 @@ def get_system_platform():
|
|||||||
platform = "osx"
|
platform = "osx"
|
||||||
return platform
|
return platform
|
||||||
|
|
||||||
|
|
||||||
def is_autorun_enabled():
|
def is_autorun_enabled():
|
||||||
try:
|
try:
|
||||||
if "xbmc.executebuiltin('RunAddon(plugin.video.kod)')" in open(os.path.join(xbmc.translatePath('special://userdata'),'autoexec.py')).read():
|
if "xbmc.executebuiltin('RunAddon(plugin.video.kod)')" in open(os.path.join(xbmc.translatePath('special://userdata'),'autoexec.py')).read():
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ def getEpg():
|
|||||||
downloadtools.downloadfile(host, archiveName)
|
downloadtools.downloadfile(host, archiveName)
|
||||||
support.log('opening gzip and writing xml')
|
support.log('opening gzip and writing xml')
|
||||||
with gzip.GzipFile(fileobj=filetools.file_open(archiveName, mode='rb', vfs=False)) as f:
|
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:
|
with open(xmlName, 'w') as f:
|
||||||
f.write(guide)
|
f.write(guide)
|
||||||
# else:
|
# else:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ if PY3:
|
|||||||
import _ssl
|
import _ssl
|
||||||
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
|
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
|
||||||
else:
|
else:
|
||||||
|
import urlparse
|
||||||
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
|
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
|
||||||
|
|
||||||
from lib.requests_toolbelt.adapters import host_header_ssl
|
from lib.requests_toolbelt.adapters import host_header_ssl
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def mainlist(item):
|
|||||||
Item(channel=item.channel, action="list_tvshows",title=config.get_localized_string(60600),
|
Item(channel=item.channel, action="list_tvshows",title=config.get_localized_string(60600),
|
||||||
category=config.get_localized_string(70271), thumbnail=thumb("videolibrary_tvshow"),
|
category=config.get_localized_string(70271), thumbnail=thumb("videolibrary_tvshow"),
|
||||||
context=[{"channel":"videolibrary", "action":"update_videolibrary", "title":config.get_localized_string(70269)}]),
|
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
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user