mirror of
https://gitlab.com/LazyLibrarian/LazyLibrarian.git
synced 2026-02-06 10:47:15 +00:00
Fix for sabnzbd returning a filename in "storage" field
This commit is contained in:
parent
835c625aee
commit
3322ef5f65
@ -391,6 +391,8 @@ def get_download_folder(source, downloadid):
|
||||
for item in res["history"]["slots"]:
|
||||
if item["nzo_id"] == downloadid:
|
||||
dlfolder = item.get("storage")
|
||||
if os.path.isfile(dlfolder):
|
||||
dlfolder = os.path.dirname(dlfolder)
|
||||
break
|
||||
|
||||
elif source == "NZBGET":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user