(
packageName: string
)
| 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; |
no outgoing calls
no test coverage detected