draw only id on thumb_mini
This commit is contained in:
parent
091197e7c7
commit
3ef1d4bdcb
2
index.js
2
index.js
@ -67,7 +67,7 @@ async function serveId(id, req, res, next) {
|
||||
res.header("X-Pixiv-Id", id);
|
||||
if (req.query.auto) res.header("Refresh", `${Number(req.query.auto)}; url=${getRandomUrl(req)}`);
|
||||
if (req.query.drawsource != null && pxreq.headers.get("Content-Type").startsWith("image")) {
|
||||
gm(pxreq.body).drawText(2, 12, `https://www.pixiv.net/en/artworks/${id}`).stream().pipe(res);
|
||||
gm(pxreq.body).drawText(2, 12, size == "thumb_mini" ? id : `https://www.pixiv.net/en/artworks/${id}`).stream().pipe(res);
|
||||
}
|
||||
else pxreq.body.pipe(res);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user