mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-16 23:54:38 -05:00
new url
This commit is contained in:
parent
0530bc1eb2
commit
03cd8d26d7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ const url = require("../config.json")
|
||||||
|
|
||||||
class Search{
|
class Search{
|
||||||
static async SearchVideo(query){
|
static async SearchVideo(query){
|
||||||
const search = await fetch(`https://lighttube.herokuapp.com/api/search?query=${query}`)
|
const search = await fetch(`https://tube.kuylar.dev/api/search?query=${query}`)
|
||||||
const text = await search.text()
|
const text = await search.text()
|
||||||
const j = JSON.parse(xmltojson.toJson(text));
|
const j = JSON.parse(xmltojson.toJson(text));
|
||||||
for (item of j.Search.Results.Video) {
|
for (item of j.Search.Results.Video) {
|
||||||
|
|
Loading…
Reference in a new issue