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

Method checkYtDlp

music/music.ts:197–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 console.log(`[music] yt-dlp found: ${bin}`);
196 return true;
197 } catch {
198 continue;
199 }
200 }
201 return false;
202 }
203
204 static async checkFfmpeg(): Promise<boolean> {
205 try {
206 await execFileAsync('ffmpeg', ['-version']);
207 console.log("[Music] FFmpeg 已就绪");
208 return true;
209 } catch {
210 console.log("[Music] FFmpeg 未找到");
211 return false;
212 }
213 }
214}
215
216// ==================== Utilities ====================

Callers 2

initializeMethod · 0.80
handleDownloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected