From 4ae4e9b78db669cc0bffedee87f8bf4dbbbe4913 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Sun, 10 May 2020 13:09:38 +0800 Subject: [PATCH] pixiv use cheerfun pximg --- worker/pixiv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/pixiv.py b/worker/pixiv.py index 84aab02..aac92dd 100644 --- a/worker/pixiv.py +++ b/worker/pixiv.py @@ -27,7 +27,8 @@ class Ans(StdAns): try: resp = requests.get(url=url,params=params).json() picurl = resp['data'][0]['url'] - msg = picurl.replace('https://i.pixiv.cat', 'https://pximg.sihuan.workers.dev') + # msg = picurl.replace('https://i.pixiv.cat', 'https://pximg.sihuan.workers.dev') + msg = picurl.replace('https://i.pixiv.cat', 'https://original.img.cheerfun.dev/') except Exception as e: print(e) msg = '咱没查到,也有可能是Pixiv坏掉了'