feat: add Steam to radar-rules (#3651)
This commit is contained in:
parent
a5e4655271
commit
d5045fffed
|
|
@ -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')}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ pageClass: routes
|
|||
|
||||
### Steam search
|
||||
|
||||
<Route author="maple3142" example="/steam/search/specials=1&term=atelier" path="/steam/search/:params" :paramsDesc="['搜寻参数']">
|
||||
<Route author="maple3142" example="/steam/search/specials=1&term=atelier" path="/steam/search/:params" :paramsDesc="['搜寻参数']" radar="1">
|
||||
|
||||
参数 params 请从 Steam 的 URL 取得
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ Example: `https://store.steampowered.com/search/?specials=1&term=atelier` 中的
|
|||
|
||||
### Steam news
|
||||
|
||||
<Route author="maple3142" example="/steam/news/282800" path="/steam/news/:appids" :paramsDesc="['游戏 id']"/>
|
||||
<Route author="maple3142" example="/steam/news/282800" path="/steam/news/:appids" :paramsDesc="['游戏 id']" radar="1"/>
|
||||
|
||||
## SteamGifts
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue