Skip to content

Commit

Permalink
fix(server): external libraries queueing two transcode jobs (immich-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard authored Oct 7, 2024
1 parent 1b62c99 commit 94d213b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions server/src/services/library.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,14 +496,6 @@ describe(LibraryService.name, () => {
},
},
],
[
{
name: JobName.VIDEO_CONVERSION,
data: {
id: assetStub.video.id,
},
},
],
]);
});

Expand Down
4 changes: 0 additions & 4 deletions server/src/services/library.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 94d213b

Please sign in to comment.