mirror of
https://github.com/imsyy/SPlayer.git
synced 2026-04-25 15:05:58 +03:00
[PR #514] [MERGED] feat(lyric): 优化歌词排除 #489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imsyy/SPlayer/pull/514
Author: @MoYingJi
Created: 10/24/2025
Status: ✅ Merged
Merged: 10/24/2025
Merged by: @imsyy
Base:
dev← Head:feat📝 Commits (10+)
f3f05aafeat(lyric): 歌词行正则排除 基本设置7f77ccbfeat(lyric): 换用歌词排除函数09838e6feat(lyric): 修改歌词排除配置页面a44cd90feat(lyric): 改个名 ExcludeKeywords -> ExcludeLyricsbd06c3ffix(storage): 原来不能直接存正则ca2ff2afeat(lyric): 设置项「TTML 歌词排除」df42292fix: 不排除 TTML 歌词 设置不生效3035056优化代码4e7bd95feat(lyric): 本地歌词排除设置项4f01877fix(lyric): 一些错误📊 Changes
8 files changed (+157 additions, -65 deletions)
View changed files
📝
src/assets/data/exclude.ts(+5 -4)➖
src/components/Modal/ExcludeKeywords.vue(+0 -20)➕
src/components/Modal/ExcludeLyrics.vue(+46 -0)📝
src/components/Setting/LyricsSetting.vue(+23 -4)📝
src/stores/setting.ts(+14 -5)📝
src/utils/lyric.ts(+52 -23)📝
src/utils/modal.ts(+2 -2)📝
src/utils/player-utils/lyric.ts(+15 -7)📄 Description
此 PR 已经编辑完成
主要变动:
excludeRegexes设置项,同时增加getExcludeRegexes函数isLyricExcluded函数,并将所有排除歌词的逻辑替换为此函数ExcludeKeywords改名为ExcludeLyricsExcludeLyrics中编辑excludeRegexes设置项enableExcludeTTML设置项enableExcludeLocalLyrics设置项isLyricExcluded的函数增加skipExclude参数,调用这些函数的时候必须先判断enableExcludeTTML和enableExcludeLocalLyrics并以此传入skipExclude参数🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.