initial port for dynamic playlists

This commit is contained in:
Boof2015
2026-07-04 13:25:41 -04:00
parent 61e6147d3e
commit f9ef845800
20 changed files with 2226 additions and 36 deletions
+4
View File
@@ -24,6 +24,8 @@ export interface DbTrack {
bitrate: number | null;
channels: number | null;
codec: string | null;
bpm: number | null;
musical_key: string | null;
source_type: TrackSourceType;
// Remote-source linkage (NULL for local tracks). source_id -> remote_sources.id;
// source_track_id is the server's track id; artwork_source_id is its cover-art id.
@@ -36,6 +38,8 @@ export interface DbTrack {
mtime: number;
added_at: number;
modified_at: number;
play_count: number;
last_played_at: number | null;
// M4 loudness facts (NULL until analyzed). loudness_lufs: integrated LUFS (dB,
// negative); sample_peak: linear [0,1]; replay_gain_*: tag dB when present.
loudness_lufs: number | null;
+2
View File
@@ -2,10 +2,12 @@
// (astra src/main/services/library.ts, renderer playlistStore.ts).
import type { DbTrack } from './library';
import type { PlaylistKind } from '@/shared/playlists/dynamicPlaylist';
export interface Playlist {
id: number;
name: string;
kind: PlaylistKind;
created_at: number;
updated_at: number;
last_played_at: number | null;