From 4d139d4a05ef2759b3fe9ba376b5779ea9ed2d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD-=E7=99=BD?= Date: Mon, 15 Feb 2021 11:12:37 +0800 Subject: [PATCH] fix(docs): manga support for pixiv user activity (#6923) * fix: support refresh token login (#6883) * docs: update pixiv login * docs: update pixiv login * docs: update pixiv config * fix: manga support for pixiv user activity (#6879) --- docs/en/install/README.md | 5 ++--- docs/install/README.md | 2 +- lib/routes/pixiv/api/getIllusts.js | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/en/install/README.md b/docs/en/install/README.md index d88c310d2a0b4d..6178e4db3da835 100644 --- a/docs/en/install/README.md +++ b/docs/en/install/README.md @@ -453,14 +453,13 @@ See docs of specified route and `lib/config.js` for detail information. - pixiv: [Registration](https://accounts.pixiv.net/signup) - - `PIXIV_PIXIV_REFRESHTOKEN`: Please refer to [this article](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362) to get a `refresh_token` - + - `PIXIV_REFRESHTOKEN`: Please refer to [this article](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362) to get a `refresh_token` + - `PIXIV_BYPASS_CDN`: bypass Cloudflare bot check by directly accessing Pixiv source server, defaults to disable, set `true` or `1` to enable - `PIXIV_BYPASS_HOSTNAME`: Pixiv source server hostname or IP address, hostname will be resolved to IPv4 address via `PIXIV_BYPASS_DOH`, defaults to `public-api.secure.pixiv.net` - `PIXIV_BYPASS_DOH`: DNS over HTTPS endpoint, it must be compatible with Cloudflare or Google DoH JSON schema, defaults to `https://1.1.1.1/dns-query` - - pixiv fanbox: Get paid content diff --git a/docs/install/README.md b/docs/install/README.md index 77a5d6a314a616..0f1333d576ae29 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -479,7 +479,7 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行 - pixiv 全部路由:[注册地址](https://accounts.pixiv.net/signup) - - `PIXIV_PIXIV_REFRESHTOKEN`: Pixiv Refresh Token, 请参考 [此文](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362) 获取,或自行对客户端抓包获取 + - `PIXIV_REFRESHTOKEN`: Pixiv Refresh Token, 请参考 [此文](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362) 获取,或自行对客户端抓包获取 - `PIXIV_BYPASS_CDN`: 绕过 Pixiv 前置的 Cloudflare CDN, 使用`PIXIV_BYPASS_HOSTNAME`指示的 IP 地址访问 Pixiv API, 可以解决因 Cloudflare 机器人验证导致的登录失败问题,默认关闭,设置 true 或 1 开启 diff --git a/lib/routes/pixiv/api/getIllusts.js b/lib/routes/pixiv/api/getIllusts.js index 6a112bd05cea54..87412d7419ba3f 100644 --- a/lib/routes/pixiv/api/getIllusts.js +++ b/lib/routes/pixiv/api/getIllusts.js @@ -19,7 +19,6 @@ module.exports = async function getIllusts(user_id, token) { searchParams: queryString.stringify({ user_id: user_id, filter: 'for_ios', - type: 'illust', }), }); };