fix <built-in function id>

This commit is contained in:
BennyThink
2021-12-16 22:34:12 +08:00
parent f177eefc23
commit ed82259089
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ ZHUIXINFAN_SEARCH = "http://www.fanxinzhui.com/list?k={}"
ZHUIXINFAN_RESOURCE = "http://www.fanxinzhui.com{}"
# yyets website
DOMAIN = "https://yyets.dmesg.app/"
WORKERS = f"{DOMAIN}resource.html?id={id}"
WORKERS = f"{DOMAIN}resource.html?id=%s"
# new zmz
NEWZMZ_SEARCH = "https://newzmz.com/subres/index/getres.html?keyword={}"

View File

@@ -237,7 +237,7 @@ class YYeTsOffline(BaseFansub):
rid = resource_url.split("id=")[1]
data: dict = self.collection.find_one({"data.info.id": int(rid)}, {'_id': False})
name = data["data"]["info"]["cnname"]
share = WORKERS.format(id=rid)
share = WORKERS % rid
t = "resource"
return {"all": json.dumps(data, ensure_ascii=False, indent=4), "share": share, "cnname": name, "type": t}