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

@@ -308,6 +308,14 @@
}) : null;
}
function withEnabled(entry, enabled) {
if (!materializedEntries.has(entry) || typeof enabled !== "boolean") return null;
if (entry.enabled === enabled) return entry;
const replacement = Object.freeze({ ...entry, enabled });
materializedEntries.add(replacement);
return replacement;
}
function matchesRaw(entry, raw) {
const signature = legacySelectionForEntry(entry);
return Boolean(signature && raw && typeof raw.enabled === "boolean" &&
@@ -333,6 +341,7 @@
normalizeError,
materialize,
restorePlaylistEntry,
withEnabled,
legacySelectionForEntry,
matchesRaw,
isPending,