From 86607ffe77135e18edce5fefd595015425db01e0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 11 Jan 2026 21:25:35 +0100 Subject: [PATCH] Use deno.land/x/youtubei for Deno Deploy compatibility --- deno.json | 3 +-- mod.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index a89cd62..85fafdf 100644 --- a/deno.json +++ b/deno.json @@ -7,8 +7,7 @@ "dev": "deno run --watch --allow-net --allow-env --allow-read mod.ts" }, "imports": { - "std/": "https://deno.land/std@0.208.0/", - "youtubei.js": "npm:youtubei.js@latest" + "std/": "https://deno.land/std@0.208.0/" }, "compilerOptions": { "strict": true diff --git a/mod.ts b/mod.ts index 19d5b24..02bcfdd 100644 --- a/mod.ts +++ b/mod.ts @@ -7,7 +7,7 @@ */ import { serve } from "https://deno.land/std@0.208.0/http/server.ts"; -import { Innertube } from "youtubei.js"; +import { Innertube } from "https://deno.land/x/youtubei@v12.2.0/deno.ts"; import { YTMusic, YouTubeSearch, LastFM, fetchFromPiped, fetchFromInvidious, getLyrics, getTrendingMusic, getRadio, getTopArtists, getTopTracks, getArtistInfo, getTrackInfo, getSongComplete, getAlbumComplete, getArtistComplete, getFullChain } from "./lib.ts"; import { html as uiHtml } from "./ui.ts";