Fix Ricerca in cache
This commit is contained in:
@@ -245,7 +245,7 @@ def run(item=None):
|
|||||||
# Special action for searching, first asks for the words then call the "search" function
|
# Special action for searching, first asks for the words then call the "search" function
|
||||||
elif item.action == "search":
|
elif item.action == "search":
|
||||||
# from core.support import dbg;dbg()
|
# 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 = []
|
itemlist = []
|
||||||
f = filetools.read(temp_search_file)
|
f = filetools.read(temp_search_file)
|
||||||
strList = f.split(',')
|
strList = f.split(',')
|
||||||
@@ -356,7 +356,7 @@ def new_search(item, channel=None):
|
|||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
def set_search_temp(item):
|
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)
|
f = '[V],' + filetools.read(temp_search_file)
|
||||||
filetools.write(temp_search_file, f)
|
filetools.write(temp_search_file, f)
|
||||||
|
|
||||||
|
|||||||
+3
-6
@@ -201,8 +201,7 @@ def channel_search(item):
|
|||||||
searching_titles += channel_titles
|
searching_titles += channel_titles
|
||||||
cnt = 0
|
cnt = 0
|
||||||
|
|
||||||
progress = platformtools.dialog_progress(config.get_localized_string(30993) % item.title, config.get_localized_string(70744) % len(channel_list),
|
progress = platformtools.dialog_progress(config.get_localized_string(30993) % item.title, config.get_localized_string(70744) % len(channel_list), ', '.join(searching_titles))
|
||||||
', '.join(searching_titles))
|
|
||||||
config.set_setting('tmdb_active', False)
|
config.set_setting('tmdb_active', False)
|
||||||
|
|
||||||
search_action_list = []
|
search_action_list = []
|
||||||
@@ -250,14 +249,12 @@ def channel_search(item):
|
|||||||
cnt += 1
|
cnt += 1
|
||||||
searching_titles.remove(searching_titles[searching.index(channel)])
|
searching_titles.remove(searching_titles[searching.index(channel)])
|
||||||
searching.remove(channel)
|
searching.remove(channel)
|
||||||
progress.update(old_div(((total_search_actions - len(search_action_list)) * 100), total_search_actions), config.get_localized_string(70744) % str(len(channel_list) - cnt),
|
progress.update(old_div(((total_search_actions - len(search_action_list)) * 100), total_search_actions), config.get_localized_string(70744) % str(len(channel_list) - cnt), ', '.join(searching_titles))
|
||||||
', '.join(searching_titles))
|
|
||||||
|
|
||||||
progress.close()
|
progress.close()
|
||||||
|
|
||||||
cnt = 0
|
cnt = 0
|
||||||
progress = platformtools.dialog_progress(config.get_localized_string(30993) % item.title, config.get_localized_string(60295),
|
progress = platformtools.dialog_progress(config.get_localized_string(30993) % item.title, config.get_localized_string(60295), config.get_localized_string(60293))
|
||||||
config.get_localized_string(60293))
|
|
||||||
|
|
||||||
config.set_setting('tmdb_active', True)
|
config.set_setting('tmdb_active', True)
|
||||||
# res_count = 0
|
# res_count = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user