Fix Riproduzione e Download Torrent

This commit is contained in:
Alhaziel01
2021-11-03 19:58:29 +01:00
parent f3f86991c9
commit d4ab965974
19 changed files with 961 additions and 59 deletions
+3 -2
View File
@@ -1065,8 +1065,9 @@ def save_download_movie(item):
if not platformtools.dialog_yesno(config.get_localized_string(30101), config.get_localized_string(70189)):
platformtools.dialog_ok(config.get_localized_string(30101), item.contentTitle + '\n' + config.get_localized_string(30109))
else:
# from core.support import dbg;dbg()
play_item = select_server(item)
if play_item == 'Auto':
if type(play_item) == str and play_item == 'Auto':
start_download(item)
else:
play_item = item.clone(**play_item.__dict__)
@@ -1110,7 +1111,7 @@ def save_download_tvshow(item):
if len(episodes) == 1:
play_item = select_server(episodes[0])
if play_item: # not pressed cancel
if play_item == 'Auto':
if type(play_item) == str and play_item == 'Auto':
start_download(episodes[0])
else:
play_item = episodes[0].clone(**play_item.__dict__)
+1 -1
View File
@@ -810,7 +810,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)
+4 -4
View File
@@ -363,12 +363,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):