mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
add initial anime search work
This commit is contained in:
parent
cc4f57d133
commit
d37a0d46de
4 changed files with 113 additions and 1 deletions
|
@ -170,6 +170,19 @@ module.exports.rule34 = async function(context, query, service){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.anime = async function(context, query, includeAdultContent){
|
||||
return await request(Api.SEARCH_ANIME, "GET", {}, {
|
||||
q: query,
|
||||
include_adult: includeAdultContent
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.animeSupplemental = async function(context, supplementalKey){
|
||||
return await request(Api.SEARCH_ANIME_SUPPLEMENTAL, "GET", {}, {
|
||||
supplemental_key: supplementalKey
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.bing = async function(context, query, nsfw){
|
||||
return await request(Api.SEARCH_BING, "GET", {}, {
|
||||
q: query,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue