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
fix(server): use correct file extension for motion photo videos #8659
fix(server): use correct file extension for motion photo videos #8659
Conversation
@alextran1502 I saw that since #7679 the file extension for the archive download is only taken from |
Yeah, IMO |
On the other hand I'm wondering if the video should be downloaded at all, since it seems to still be embedded in the downloaded jpg and thus downloaded twice. |
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.
I think we should probably fix the original filename which is wrong, no?
The video is extracted from the jpg on upload, so the filename is kind of correct (since it says "original"). It is a little ambiguous, that's why I'm questioning the download of the separate video altogether 🤔 |
So from what I'm reading there are motion photo formats which
This means the correct fix for the issue is to only download a separate video when the jpg does not contain the video, right? How would we detect that? I could think of two ways:
|
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.
Looks great imo. Once the tests are passing I think we'll be good to go.
@jrasm91 I added the This tripped up another a "storage template move" test because moving uses asset ids ( Outside of tests, I don't see how an asset can not have an Should I just create a new stub to not interfere with other tests? |
This is fine. |
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.
LGTM
Closes #8658
Set
originalFileName
extension of motion assets tomp4
TODO