Miglioria del precedente commit

This commit is contained in:
mac12m99
2021-11-02 19:58:01 +01:00
parent 9828908bfe
commit ebbf37222e
7 changed files with 25 additions and 18 deletions

View File

@@ -812,7 +812,7 @@ class SearchWindow(xbmcgui.WindowXML):
def play(self, server=None):
platformtools.prevent_busy(server)
platformtools.prevent_busy()
server.window = True
server.globalsearch = True
return run(server)

View File

@@ -365,12 +365,12 @@ def findvideos(item):
else:
content_title = item.contentTitle.strip().lower()
if item.contentType == 'movie':
item.strm_path = filetools.join(videolibrarytools.MOVIES_PATH, item.strm_path)
path_dir = filetools.dirname(item.strm_path)
strm_path = filetools.join(videolibrarytools.MOVIES_PATH, item.strm_path)
path_dir = filetools.dirname(strm_path)
item.nfo = filetools.join(path_dir, filetools.basename(path_dir) + ".nfo")
else:
item.strm_path = filetools.join(videolibrarytools.TVSHOWS_PATH, item.strm_path)
path_dir = filetools.dirname(item.strm_path)
strm_path = filetools.join(videolibrarytools.TVSHOWS_PATH, item.strm_path)
path_dir = filetools.dirname(strm_path)
item.nfo = filetools.join(path_dir, 'tvshow.nfo')
for fd in filetools.listdir(path_dir):