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')}")