diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 953dd38da..fc4821c19 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -938,4 +938,22 @@ }, ], }, + + 'steampowered.com': { + _name: 'Steam', + store: [ + { + title: 'search', + docs: 'https://docs.rsshub.app/game.html#steam', + source: '/search/', + target: (params, url) => `/steam/search/${new URL(url).searchParams}`, + }, + { + title: 'news', + docs: 'https://docs.rsshub.app/game.html#steam', + source: '/news/', + target: (params, url) => `/steam/news/${new URL(url).searchParams.get('appids')}`, + }, + ], + }, }); diff --git a/docs/game.md b/docs/game.md index 5b053648a..d02cf6a6f 100644 --- a/docs/game.md +++ b/docs/game.md @@ -145,7 +145,7 @@ pageClass: routes ### Steam search - + 参数 params 请从 Steam 的 URL 取得 @@ -155,7 +155,7 @@ Example: `https://store.steampowered.com/search/?specials=1&term=atelier` 中的 ### Steam news - + ## SteamGifts