mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 04:58:30 +01:00
feat(settings): add notifications, landing-tab and wifi-only setting keys
This commit is contained in:
@@ -294,6 +294,12 @@ export type Settings = {
|
||||
openSubtitlesApiKey?: string;
|
||||
// TV-only: Inactivity timeout for auto-logout
|
||||
inactivityTimeout: InactivityTimeout;
|
||||
// Settings-redo additions (SP1)
|
||||
notificationsEnabled: boolean;
|
||||
notifyDownloads: boolean;
|
||||
defaultLandingTab: "(home)" | "(search)" | "(favorites)" | "(libraries)";
|
||||
downloadOnWifiOnly: boolean;
|
||||
cellularBitrate?: Bitrate;
|
||||
};
|
||||
|
||||
export interface Lockable<T> {
|
||||
@@ -395,6 +401,11 @@ export const defaultValues: Settings = {
|
||||
audioTranscodeMode: AudioTranscodeMode.Auto,
|
||||
// TV-only: Inactivity timeout (disabled by default)
|
||||
inactivityTimeout: InactivityTimeout.Disabled,
|
||||
notificationsEnabled: true,
|
||||
notifyDownloads: true,
|
||||
defaultLandingTab: "(home)",
|
||||
downloadOnWifiOnly: false,
|
||||
cellularBitrate: undefined,
|
||||
};
|
||||
|
||||
const loadSettings = (): Partial<Settings> => {
|
||||
|
||||
Reference in New Issue
Block a user