use new UI for bot, new screenshots

This commit is contained in:
Benny
2023-02-05 20:51:08 +01:00
parent daddbf5032
commit cec312082a
6 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 754 KiB

After

Width:  |  Height:  |  Size: 759 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 653 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

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=%s"
WORKERS = f"{DOMAIN}resource?id=" + "{}"
# new zmz
NEWZMZ_SEARCH = "https://newzmz.com/subres/index/getres.html?keyword={}"

View File

@@ -192,7 +192,7 @@ class YYeTsOffline(BaseFansub):
results = {}
for item in data:
info = item["data"]["info"]
url = "https://yyets.dmesg.app/resource.html?id={}".format(info["id"])
url = WORKERS.format(info["id"])
url_hash = hashlib.sha1(url.encode('u8')).hexdigest()
all_name = info["cnname"] + info["enname"] + info["aliasname"]
results[url_hash] = {
@@ -205,7 +205,7 @@ class YYeTsOffline(BaseFansub):
comments = self.db["comment"].find({"content": {"$regex": f".*{search_text}.*", "$options": "i"}})
for c in comments:
url = "https://yyets.dmesg.app/resource.html?id={}#{}".format(c["resource_id"], str(c["_id"]))
url = WORKERS + "#{}".format(c["resource_id"], str(c["_id"]))
url_hash = hashlib.sha1(url.encode('u8')).hexdigest()
all_name = c["content"]
results[url_hash] = {
@@ -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 % rid
share = WORKERS.format(rid)
t = "resource"
return {"all": json.dumps(data, ensure_ascii=False, indent=4), "share": share, "cnname": name, "type": t}