mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
40db6b08d2
* chore(playback): remove Preload Next Track setting The configurable next-track RAM preload duplicated hot cache and is obsolete now that ranged streaming starts playback sooner. Gapless and crossfade still use the internal audio_preload backup when hot cache is off. * docs: add CHANGELOG entry for Preload Next Track removal (PR #1007)
26 lines
796 B
TypeScript
26 lines
796 B
TypeScript
import type { AuthState } from './authStoreTypes';
|
|
|
|
type SetState = (
|
|
partial: Partial<AuthState> | ((state: AuthState) => Partial<AuthState>),
|
|
) => void;
|
|
|
|
/**
|
|
* Persistent plumbing settings that don't fit a more specific domain:
|
|
* runtime logging level, Navidrome `getNowPlaying` toggle, audiobook
|
|
* exclusion, genre blacklist.
|
|
*/
|
|
export function createPlumbingSettingsActions(set: SetState): Pick<
|
|
AuthState,
|
|
| 'setLoggingMode'
|
|
| 'setNowPlayingEnabled'
|
|
| 'setExcludeAudiobooks'
|
|
| 'setCustomGenreBlacklist'
|
|
> {
|
|
return {
|
|
setLoggingMode: (v) => set({ loggingMode: v }),
|
|
setNowPlayingEnabled: (v) => set({ nowPlayingEnabled: v }),
|
|
setExcludeAudiobooks: (v) => set({ excludeAudiobooks: v }),
|
|
setCustomGenreBlacklist: (v) => set({ customGenreBlacklist: v }),
|
|
};
|
|
}
|