pixiv use cheerfun pximg

This commit is contained in:
SiHuan 2020-05-10 13:09:38 +08:00
parent 3d084394d3
commit 4ae4e9b78d

View file

@ -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坏掉了'