feat: add subtitle search functionality and download feature

- Added subtitle search results support in zh-TW locale.
- Enhanced resource page to handle subtitle search results, including new computed properties and methods for managing subtitle data.
- Introduced SubtitleCard and SubtitleItem components for displaying subtitle information.
- Created AddSubtitleDownloadDialog for managing subtitle downloads with directory selection and media ID options.
- Implemented subtitle download caching mechanism to track downloaded subtitles.
This commit is contained in:
jxxghp
2026-06-09 06:47:09 +08:00
parent 19710a5f0f
commit b1cb07ae8c
10 changed files with 1062 additions and 22 deletions
+13
View File
@@ -0,0 +1,13 @@
import { reactive } from 'vue'
const downloadedSubtitleMap = reactive<Record<string, boolean>>({})
export function markSubtitleDownloaded(url?: string | null) {
if (!url) {
return
}
downloadedSubtitleMap[url] = true
}
export { downloadedSubtitleMap }