Replace Comfy YuE with standalone YuEGP profile 1
This commit is contained in:
@@ -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.' })
|
||||
|
||||
Reference in New Issue
Block a user