Implemented remote side

This commit is contained in:
patben8 committed 2026-10-19 21:39:47 +02:00
1 parent 4cb630d0d5
commit 13ba2c721a
14 files changed
+880 -13

No files matched your search

+1 -5
View File
@@ -1026,11 +1026,7 @@ export default function App() {
/** Why Normalize cannot change these tracks' files, if so. */
const normalizeRefusal = (ids: string[]): string | null =>
analyzeRefusal(analyzeOrigin(ids)) ??
(editState.data?.remote
? 'Normalize is not available on a remote library yet'
: capabilities.data?.tracks.normalizable
? null
: "This library's audio files cannot be normalized")
(capabilities.data?.tracks.normalizable ? null : "This library's audio files cannot be normalized")
const analyzeOrigin = (ids: string[]): TrackOrigin =>
viewingDevice ? 'device' : viewingFolder && ids.some((id) => !folderFiles[id]) ? 'folder' : 'collection'
/** Why BPM / Grid / Key cannot be analysed for these tracks at all, if so. */