From 4f4270fd28a66b4132a42db795b3e1cc45707ba0 Mon Sep 17 00:00:00 2001 From: Ben_Kosytorz Date: Sun, 4 Oct 2026 19:03:54 +0200 Subject: [PATCH] Match gofile 'error-notFound' status (API prefixes dead-link status with error-) --- dlphelper/gofile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlphelper/gofile.py b/dlphelper/gofile.py index f9cba05..9c30054 100644 --- a/dlphelper/gofile.py +++ b/dlphelper/gofile.py @@ -169,7 +169,7 @@ class GoFileClient: except ValueError as exc: raise GoFileError(f"non-JSON response for {cid}: {resp.text[:200]}") from exc - if data.get("status") == "notFound": + if data.get("status") == "notFound" or "notFound" in str(data.get("status", "")): raise GoFileNotFound(f"content {cid} does not exist anymore (dead link)") if data.get("status") != "ok": raise GoFileError(f"content request failed for {cid}: {data.get('status')}")