Fix for sabnzbd returning a filename in "storage" field

This commit is contained in:
phil.borman@gmail.com 2026-01-01 12:38:44 +01:00
parent 835c625aee
commit 3322ef5f65

View File

@ -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":