commit 713328e6fc3ddab95b2afc3ab9397e062d98365f parent 216abb0dbcb810772badbfb977e44f45937cae92 Author: Daniel <23189912+danyisill@users.noreply.github.com> Date: Fri, 20 Nov 2020 19:27:45 +0200 Migrate API lol Diffstat:
M | lib/commands/youtube.ts | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/commands/youtube.ts b/lib/commands/youtube.ts @@ -31,7 +31,7 @@ export default async (home_scope: HomeScope) => { } const query_uri = encodeURI(query); - const result = await fetch(`https://vid.mint.lgbt/api/v1/search` + const result = await fetch(`https://invidious.snopyta.org/api/v1/search` + `?q=${query_uri}&sort_by=${sort_by}&type=${type}`); const res_json = await result.json(); const res = res_json[Math.abs(num - 1)];