()
| 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 ==================== |
no outgoing calls
no test coverage detected