-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Update CapturedAtTagNames.ts #159
Conversation
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.
Thanks for the example video!
Between when this PR was merged and 23.2.0 was released it looks like the order of these tags was changed. From what I understand, more or less all videos have Is there a reason you changed the order? |
I pushed SubSec values to the front as they (sometimes, not always) have higher precision. The “demoting” of CreationDate wasn’t on purpose (I mistakenly assumed he added it in alphabetic order). I actually don’t recommend simply returning the first defined value. I had to make PhotoStructure use additional heuristics (including precision-invariant sorting) to get the proper captured-at time. More details are here: https://photostructure.com/faq/captured-at/ As the list of tags is given to the function, and this const is simply the default, and there’s an order you prefer, perhaps use your own array? I’ll “demote” CreateDate later today. |
OK. No worries, we can definitely use our own order. I was just curious if there was a specific reason for the change. Applying additional heuristics and fallbacks is definitely a good idea. What you have on the FAQ is a good list/order - thanks for the link. Using Perhaps you can contribute to Immich a better "captured at" implementation in the future 😄 |
Are you getting
|
No, I'm talking specifically about Quicktime:CreateDate. You are probably more familiar with the space than I am. The videos I have been working with are mostly phone/camera videos, most of which are mp4s with a Of the other movie types you've collected, do any of them have both |
Lol, great. I'm sure we'll run into more edge cases soon enough :-). |
I found the issue that the method
firstDateTime
doesn't consider the file's creation date. So, it causes an issue for this file, which has theCreationDate
is the actual file's created date and theCreateDate
is the file's modified datesample.zip