Replace Comfy YuE with standalone YuEGP profile 1

This commit is contained in:
Towsty
2026-09-07 20:24:47 -05:00
parent eeff12cdab
commit c2b6032e49
33 changed files with 976 additions and 294 deletions
+6
View File
@@ -90,6 +90,7 @@ export function inspectLiveMusicJob(job: Job) {
seed: lib?.seed,
cfg: lib?.cfg,
engine: lib?.engine,
yueProfile: lib?.yueProfile,
lyricsStrength: lib?.lyricsStrength,
hideThumbnail: true,
folderLocked: lib?.folderLocked === true
@@ -110,6 +111,11 @@ export async function cancelLiveMusicJob(owner: string, id: string) {
if (!live || live.kind !== 'music' || live.library?.ownerKey !== owner) {
throw createError({ statusCode: 404, statusMessage: 'Queued job not found' })
}
if (live.yueGp) {
const { cancelYueGpJob } = await import('./yueGp')
await cancelYueGpJob(live)
return
}
live.status = 'cancelled'
if (live.library) live.library.stopAfterCurrent = true
emitJob(live, { type: 'error', error: 'Job interrupted.', message: 'Job interrupted.' })