MCPcopy
hub / github.com/stemdeckapp/stemdeck / deriveSource

Function deriveSource

static/js/catalog.js:349–355  ·  view source on GitHub ↗
(sourceUrl)

Source from the content-addressed store, hash-verified

347}
348
349function 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
357function deriveQuality(sourceUrl) {
358 if (!sourceUrl) return "—";

Callers 2

applyTrackInfoToPanelFunction · 0.70
renderLibraryRowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected