Fix Ricerca in cache

This commit is contained in:
Alhaziel01
2020-07-31 09:22:25 +02:00
parent 297a894a64
commit d6c338e949
2 changed files with 5 additions and 8 deletions

View File

@@ -245,7 +245,7 @@ def run(item=None):
# Special action for searching, first asks for the words then call the "search" function
elif item.action == "search":
# from core.support import dbg;dbg()
if filetools.isfile(temp_search_file):
if filetools.isfile(temp_search_file) and config.get_setting('videolibrary_kodi'):
itemlist = []
f = filetools.read(temp_search_file)
strList = f.split(',')
@@ -356,7 +356,7 @@ def new_search(item, channel=None):
return itemlist
def set_search_temp(item):
if filetools.isfile(temp_search_file):
if filetools.isfile(temp_search_file) and config.get_setting('videolibrary_kodi'):
f = '[V],' + filetools.read(temp_search_file)
filetools.write(temp_search_file, f)