feat: restore legacy named playlist workflows

This commit is contained in:
2026-07-12 11:59:18 +09:00
parent a481c96c39
commit af80c36cde
52 changed files with 9261 additions and 83 deletions

View File

@@ -441,6 +441,16 @@
return recreated;
}
function withEnabled(entry, enabled) {
const freshRead = trustedPlaylistEntries.get(entry);
if (!freshRead || typeof enabled !== "boolean") return null;
if (entry.enabled === enabled) return entry;
const replacement = restorePlaylistEntry({ ...entry, enabled });
if (!replacement) return null;
trustedPlaylistEntries.set(replacement, freshRead);
return replacement;
}
return {
bridgeContract,
audiences,
@@ -471,6 +481,7 @@
createViPlaylistEntry,
isPlaylistEntryPlayable,
restorePlaylistEntry,
withEnabled,
refreshPlaylistEntry: restorePlaylistEntry
};
});