feat(lyric): 本地歌词排除设置项

This commit is contained in:
MoYingJi
2025-10-24 22:06:57 +08:00
parent 3035056ded
commit 4e7bd95366
5 changed files with 57 additions and 32 deletions

View File

@@ -158,7 +158,9 @@ export interface SettingState {
/** 是否启用排除歌词 */
enableExcludeLyrics: boolean;
/** 「排除歌词」是否适用于 TTML */
enableTTMLExclude: boolean;
enableExcludeTTML: boolean;
/** 「排除歌词」是否适用于本地歌词 */
enableExcludeLocalLyrics: boolean;
/** 排除歌词关键字 */
excludeKeywords: string[];
/** 排除歌词正则表达式 */
@@ -223,7 +225,8 @@ export const useSettingStore = defineStore("setting", {
lyricsScrollPosition: "start",
lrcMousePause: false,
enableExcludeLyrics: true,
enableTTMLExclude: false,
enableExcludeTTML: false,
enableExcludeLocalLyrics: false,
excludeKeywords: keywords,
excludeRegexes: regexes,
localFilesPath: [],