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{ 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) {