Use deno.land/x/youtubei for Deno Deploy compatibility

This commit is contained in:
Your Name
2026-01-11 21:25:35 +01:00
parent cc527e3c0c
commit 86607ffe77
2 changed files with 2 additions and 3 deletions

View File

@@ -7,8 +7,7 @@
"dev": "deno run --watch --allow-net --allow-env --allow-read mod.ts" "dev": "deno run --watch --allow-net --allow-env --allow-read mod.ts"
}, },
"imports": { "imports": {
"std/": "https://deno.land/std@0.208.0/", "std/": "https://deno.land/std@0.208.0/"
"youtubei.js": "npm:youtubei.js@latest"
}, },
"compilerOptions": { "compilerOptions": {
"strict": true "strict": true

2
mod.ts
View File

@@ -7,7 +7,7 @@
*/ */
import { serve } from "https://deno.land/std@0.208.0/http/server.ts"; 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 { 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"; import { html as uiHtml } from "./ui.ts";