feat(audio): 支持斜杠格式的车站编号和模糊搜索匹配

- 修改TTS音频导入逻辑,保留编号中的斜杠(/)格式(如 CH-01/CE-12),自动创建子目录
- 移除generator.html中单文件和批量导入时的斜杠转横杠逻辑
- 新增sanitizeStationCode和ensureDirForFile辅助函数,确保路径安全
- 重写findFileCaseInsensitive,支持递归子目录搜索与末尾段模糊匹配
- 新增listAllFilesRecursive和resolveAudioPathWithFuzzy工具函数
- 修改getPlaybackAudioByBaseName/findWavByBaseName支持模糊搜索查找
- 修改resolveManagedPath允许子路径访问,getManagedFiles递归扫描子目录
- 媒体路由从:file参数改为通配符/*形式,safeRelativeToBase确保路径安全
- 升级版本号至v1.0.98
This commit is contained in:
2026-08-17 14:54:21 +08:00
parent 849b43af39
commit 55f0312314
3 changed files with 204 additions and 145 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
-- 1. Configuration & Constants
local APP_VERSION_TEXT = "v1.0.97"
local APP_VERSION_TEXT = "v1.0.98"
local CONFIG = {
CLOUD_URL = "ws://stabadmin.fse-media.group",
@@ -61,7 +61,8 @@ local State = {
updateInProgress = false,
lastPeripheralScan = 0,
lastScheduleSync = 0,
lastIdentitySync = 0
lastIdentitySync = 0,
localCableGroup = ""
}