mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 10:27:05 -04:00
migrate to omnisearch endpoint
This commit is contained in:
parent
e43775ed7d
commit
9530e59e6b
3 changed files with 35 additions and 16 deletions
|
@ -170,19 +170,6 @@ 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,
|
||||
|
@ -407,4 +394,19 @@ module.exports.emojiKitchen = async function(emoji){
|
|||
collection: "emoji_kitchen_v6",
|
||||
q: emoji.join('_')
|
||||
})
|
||||
}
|
||||
|
||||
// Omnisearch
|
||||
|
||||
module.exports.anime = async function(context, query, includeAdultContent){
|
||||
return await request(Api.OMNI_ANIME, "GET", {}, {
|
||||
q: query,
|
||||
include_adult: includeAdultContent
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.animeSupplemental = async function(context, supplementalKey){
|
||||
return await request(Api.OMNI_ANIME_SUPPLEMENTAL, "GET", {}, {
|
||||
supplemental_key: supplementalKey
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue