add varying intensity to stream tags

plus improving the tag select dropdown in general
This commit is contained in:
2026-09-25 21:26:31 +02:00
parent c49fb9bb54
commit 83cc73acff
11 changed files with 338 additions and 95 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ export function getStreams(): StreamSummary[] {
stream_date: Date.parse(stream.stream_date as string),
filename: stream.filename as string,
title: stream.title as string | null,
tags: (JSON.parse(stream.tags as string) as string[]) ?? [],
tags: stream.tags ? JSON.parse(stream.tags as string) : {},
length_seconds: stream.length_seconds as number
}));
}
@@ -40,7 +40,7 @@ export function getStreamInfo(streamId: string): Stream | null {
format: streamData.format as string,
title: streamData.title as string | null,
description: streamData.description as string | null,
tags: (JSON.parse(streamData.tags as string) as string[]) ?? [],
tags: streamData.tags ? JSON.parse(streamData.tags as string) : {},
length_seconds: streamData.length_seconds as number,
tracks: JSON.parse(streamData.tracks as string)
};