use new UI for bot, new screenshots
BIN
assets/1.png
|
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 1.0 MiB |
BIN
assets/3.png
|
Before Width: | Height: | Size: 754 KiB After Width: | Height: | Size: 759 KiB |
BIN
assets/index.png
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 653 KiB |
|
Before Width: | Height: | Size: 824 KiB After Width: | Height: | Size: 1.3 MiB |
@@ -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={}"
|
||||
|
||||
@@ -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}
|
||||
|
||||