(sourceUrl)
| 347 | } |
| 348 | |
| 349 | function deriveSource(sourceUrl) { |
| 350 | if (!sourceUrl) return "—"; |
| 351 | if (sourceUrl.startsWith("local:")) return "Local file"; |
| 352 | if (sourceUrl.includes("youtube.com") || sourceUrl.includes("youtu.be")) return "YouTube"; |
| 353 | if (sourceUrl.includes("soundcloud.com")) return "SoundCloud"; |
| 354 | return "Web"; |
| 355 | } |
| 356 | |
| 357 | function deriveQuality(sourceUrl) { |
| 358 | if (!sourceUrl) return "—"; |
no outgoing calls
no test coverage detected