limit MPV in-memory cache size and make it configurable

This commit is contained in:
Drew Weymouth
2023-03-28 17:34:39 -07:00
parent d67dfa07b3
commit 0a11df8c07
3 changed files with 13 additions and 6 deletions
+6 -4
View File
@@ -48,8 +48,9 @@ type PlaylistPageConfig struct {
}
type LocalPlaybackConfig struct {
AudioExclusive bool
Volume int
AudioExclusive bool
InMemoryCacheSizeMB int
Volume int
}
type ScrobbleConfig struct {
@@ -98,8 +99,9 @@ func DefaultConfig() *Config {
TracklistColumns: []string{"Artist", "Album", "Time", "Plays"},
},
LocalPlayback: LocalPlaybackConfig{
AudioExclusive: false,
Volume: 100,
AudioExclusive: false,
InMemoryCacheSizeMB: 30,
Volume: 100,
},
Scrobbling: ScrobbleConfig{
Enabled: true,