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

Function parseBitrateSetting

music_hub/music_hub.ts:170–177  ·  view source on GitHub ↗
(input?: string)

Source from the content-addressed store, hash-verified

168 return /^\d+$/.test(value) ? value : null;
169}
170
171function sourceLabel(key: SourceMode): string {
172 if (key === "auto") return "auto";
173 const source = MUSIC_SOURCES.find((item) => item.key === key);
174 return source ? `${source.name} (${source.key})` : key;
175}
176
177function normalizeSource(input?: string): SourceMode | null {
178 if (!input) return null;
179 const lowered = input.trim().toLowerCase();
180 if (!lowered) return null;

Callers 2

normalizeConfigMethod · 0.85
handleBitrateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected