m1, add file scan, library, browse, play, seek

This commit is contained in:
Boof2015
2026-06-12 19:18:42 -04:00
parent 9761975af7
commit 23be9875e8
202 changed files with 6270 additions and 115 deletions
+17 -1
View File
@@ -5,11 +5,13 @@ export type TrackSourceType = 'local' | 'subsonic' | 'jellyfin';
export interface DbTrack {
id: number;
path: string;
path: string; // SAF document content:// URI for local tracks
folder_id: number;
title: string;
artist: string;
album: string;
album_artist: string | null;
album_identity_key: string;
duration: number;
track_number: number | null;
disc_number: number | null;
@@ -23,7 +25,21 @@ export interface DbTrack {
channels: number | null;
codec: string | null;
source_type: TrackSourceType;
file_name: string;
size: number | null;
mtime: number;
added_at: number;
modified_at: number;
}
export interface LibraryFolder {
id: number;
tree_uri: string;
display_name: string;
added_at: number;
last_scanned_at: number | null;
/** Computed against persisted URI permissions at load time — not stored. */
available: boolean;
}
export interface Album {