-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(server): xmp sidecar metadata #2466
Conversation
…idecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/libs/domain/src/storage-template/storage-template.service.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Jason Rasmussen <[email protected]>
… the new job queueing
…h the logic is almost identical aside from linking the sidecar
…me between discovery and sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Have you run any of the linting checks? You should look at server/package.json or the contributing docs and run all the check commands to lint and format, and test the code (both web and UI).
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/libs/domain/src/storage-template/storage-template.service.ts
Outdated
Show resolved
Hide resolved
|
||
@Processor(QueueName.SIDECAR) | ||
export class SidecarProcessor { | ||
private logger = new Logger(SidecarProcessor.name); | ||
private assetCore: AssetCore; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code in domain/
is basically refactored code, this code here hasn't been updated and doesn't have any tests for it yet. Eventually the thought is to move all the logic out of this file into a domain/media/media.service.ts
file. If you're up for that, it would be the place to put it. Otherwise, I can move it after it's merged (refactored processors are in processors.ts
and a new service would need to be exported in domain.module.ts
). If not, no worries.
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
Can you attach a few screenshots? One of the files in |
…d of passing in every time
…lbacks, fixed typo, used generic in function for better type checking
@alex-phillips is attempting to deploy a commit to the immich Team on Vercel. A member of the Team first needs to authorize it. |
Can you help update the documentation on how we can use this feature? |
Added documentation and included some of the images in it as well. Let me know if I should elaborate on anything or include more details. |
@alex-phillips Thank you. There are some typo in the documentation, you can copy and paste the paragraph below to fix
Can you also help resolve the conflicts? Thank you |
Is there something wrong with the merge conflict? Looks like there are problems after the conflicts are resolved. |
server/apps/microservices/src/processors/metadata-extraction.processor.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the high-quality PR! And sorry for the constant new changes to the main branch :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the high-quality PR! And sorry for the constant new changes to the main branch :P
This PR adds support for ingesting metadata from XMP sidecar files.