Fix Aggiornamento Libreria

This commit is contained in:
Alhaziel
2020-01-27 19:04:45 +01:00
parent a6744438e0
commit 1874afb3b8
2 changed files with 2 additions and 4 deletions

View File

@@ -487,9 +487,7 @@ def update(folder_content=config.get_setting("folder_tvshows"), folder=""):
if videolibrarypath.startswith("special:"):
if videolibrarypath.endswith('/'):
videolibrarypath = videolibrarypath[:-1]
update_path = videolibrarypath + "/" + folder_content + "/" + folder + "/"
else:
update_path = filetools.join(videolibrarypath, folder_content, folder) + "/"
update_path = filetools.join(videolibrarypath, folder_content, folder) + "/"
if not update_path.startswith("smb://"):
payload["params"] = {"directory": update_path}