修复字幕选择作品文件夹无法展示问题

This commit is contained in:
lzyme.dev@gmail.com
2026-08-30 04:05:40 +08:00
parent b0fe131a03
commit 5636ee4f74
3 changed files with 17 additions and 10 deletions
+2 -4
View File
@@ -74,9 +74,6 @@ export class JavPackSubtitle {
return window.Req115 || null;
}
static getGrant() {
return window.Grant || null;
}
static getTargetCid() {
return document.querySelector(".x-match-cont .zymatch-item [data-cid]")?.dataset.cid
@@ -235,7 +232,8 @@ export class JavPackSubtitle {
dirWrap.style.display = "";
dirSelect.innerHTML = this.cached115Matches.map((m) => {
const checked = this.current115Cids.includes(m.cid) ? " checked" : "";
return `<label class="pdb-sub-checkbox-label"><input type="checkbox" class="pdb-sub-checkbox" value="${m.cid}"${checked}><span>${this.escapeHtml(m.name)}</span></label>`;
const displayName = m.name.length > 26 ? m.name.slice(0, 26) + '...' : m.name;
return `<label class="pdb-sub-checkbox-label"><input type="checkbox" class="pdb-sub-checkbox" value="${m.cid}"${checked}><span title="${this.escapeHtml(m.name)}">${this.escapeHtml(displayName)}</span></label>`;
}).join("");
};