From 94d213bbb9d882080697d041f4a5b99472bf7db5 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Mon, 7 Oct 2024 14:34:48 +0100 Subject: [PATCH] fix(server): external libraries queueing two transcode jobs (#13251) --- server/src/services/library.service.spec.ts | 8 -------- server/src/services/library.service.ts | 4 ---- 2 files changed, 12 deletions(-) diff --git a/server/src/services/library.service.spec.ts b/server/src/services/library.service.spec.ts index 73c3684a9d..e8e276a0e2 100644 --- a/server/src/services/library.service.spec.ts +++ b/server/src/services/library.service.spec.ts @@ -496,14 +496,6 @@ describe(LibraryService.name, () => { }, }, ], - [ - { - name: JobName.VIDEO_CONVERSION, - data: { - id: assetStub.video.id, - }, - }, - ], ]); }); diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts index 23cfb07f0a..84a8a277f5 100644 --- a/server/src/services/library.service.ts +++ b/server/src/services/library.service.ts @@ -431,10 +431,6 @@ export class LibraryService extends BaseService { this.logger.debug(`Queueing metadata extraction for: ${asset.originalPath}`); await this.jobRepository.queue({ name: JobName.METADATA_EXTRACTION, data: { id: asset.id, source: 'upload' } }); - - if (asset.type === AssetType.VIDEO) { - await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: { id: asset.id } }); - } } async queueScan(id: string) {