mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
fix <built-in function id>
This commit is contained in:
@@ -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={}"
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user