MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isPackageInstalled

Method isPackageInstalled

music/music.ts:185–195  ·  view source on GitHub ↗
(
    packageName: string
  )

Source from the content-addressed store, hash-verified

183 }
184 }
185
186 static async checkYtDlp(): Promise<boolean> {
187 const commands: [string, string[]][] = [
188 ["yt-dlp", ["--version"]],
189 ["python3", ["-m", "yt_dlp", "--version"]],
190 ];
191
192 for (const [bin, args] of commands) {
193 try {
194 await execFileAsync(bin, args);
195 console.log(`[music] yt-dlp found: ${bin}`);
196 return true;
197 } catch {
198 continue;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected