fix(server): external libraries queueing two transcode jobs (#13251)

This commit is contained in:
Zack Pollard 2024-10-07 14:34:48 +01:00 committed by GitHub
parent 1b62c99b9e
commit 94d213bbb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -496,14 +496,6 @@ describe(LibraryService.name, () => {
},
},
],
[
{
name: JobName.VIDEO_CONVERSION,
data: {
id: assetStub.video.id,
},
},
],
]);
});

View File

@ -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) {