From 6cc3acde01f066dc74a81aafeaf2a5c6b1872a5d Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 17 Feb 2024 14:35:25 +0000 Subject: [PATCH] docs: fix spotify envs docs --- website/docs/install/config.md | 8 +++++++- website/docs/routes/multimedia.mdx | 2 +- .../current/install/config.md | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/website/docs/install/config.md b/website/docs/install/config.md index e33d7cb87..38e056648 100644 --- a/website/docs/install/config.md +++ b/website/docs/install/config.md @@ -478,7 +478,13 @@ For scientific journal routes For user data related routes -- `SPOTIFY_REFRESHTOKEN`: The refresh token of the user from the Spotify application. Check [this gist](https://gist.github.com/outloudvi/d1bbeb5e989db5385384a223a7263744) for detailed information. +- `SPOTIFY_REFRESHTOKEN`: The refresh token of the user from the Spotify application. You can obtain it through [spotify-refresh-token](https://alecchen.dev/spotify-refresh-token/) by [alecchendev](https://github.com/alecchendev/spotify-refresh-token). + +:::tip + +Remember to check `user-top-read` and `user-library-read` in the scope for `Personal Top Items` and `Personal Saved Tracks` respectively. + +::: ### Telegram diff --git a/website/docs/routes/multimedia.mdx b/website/docs/routes/multimedia.mdx index 2d389d764..df83a4291 100644 --- a/website/docs/routes/multimedia.mdx +++ b/website/docs/routes/multimedia.mdx @@ -1071,7 +1071,7 @@ JavDB 有多个备用域名,本路由默认使用永久域名 `https://javdb.c ### Show {#spotify-show} - + ## Sub HD {#sub-hd} diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/install/config.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/install/config.md index 799c39868..945520ad7 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/install/config.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/install/config.md @@ -457,7 +457,13 @@ RSSHub 支持使用访问密钥 / 码,允许清单和拒绝清单三种方式 用户相关路由 -- `SPOTIFY_REFRESHTOKEN`:用户在此 Spotify 应用的 refresh token。可以利用 [此 gist](https://gist.github.com/outloudvi/d1bbeb5e989db5385384a223a7263744) 获取。 +- `SPOTIFY_REFRESHTOKEN`:用户在此 Spotify 应用的 refresh token。可以利用 [alecchendev](https://github.com/alecchendev/spotify-refresh-token) 制作的 [spotify-refresh-token](https://alecchen.dev/spotify-refresh-token/) 获取。 + +:::tip + +记得为 `Personal Top Items` 或 `Personal Saved Tracks` 分别勾选 `user-top-read` 或 `user-library-read` scope。 + +::: ### Telegram