mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 23:19:42 +00:00
Refactor skip intro/outro to global settings instead of per-book
Settings are now stored as top-level user settings in localStorage rather than nested under bookSkipSettings per libraryItemId. This makes the settings always accessible regardless of playback state.
This commit is contained in:
parent
d157388680
commit
8a34eff1e9
3 changed files with 26 additions and 54 deletions
|
|
@ -19,7 +19,10 @@ export const state = () => ({
|
|||
authorSortDesc: false,
|
||||
jumpForwardAmount: 10,
|
||||
jumpBackwardAmount: 10,
|
||||
bookSkipSettings: {} // 书籍跳过配置 { [libraryItemId]: { skipIntro, introDuration, skipOutro, outroDuration } }
|
||||
skipIntro: false,
|
||||
introDuration: 10,
|
||||
skipOutro: false,
|
||||
outroDuration: 10
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue