1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 20:54:40 -05:00
This commit is contained in:
Ashley 2022-06-22 14:44:12 +03:00 committed by GitHub
parent 0530bc1eb2
commit 03cd8d26d7

View file

@ -4,7 +4,7 @@ const url = require("../config.json")
class Search{
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 j = JSON.parse(xmltojson.toJson(text));
for (item of j.Search.Results.Video) {