mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-03 01:38:11 +01:00
new url
This commit is contained in:
parent
5b56e97eaa
commit
42ad36fc0b
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