-
Notifications
You must be signed in to change notification settings - Fork 554
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
MOV files of Live Photos are not deleted #515
Comments
@AndreyNikiforov Any updates on this? That's breaking core functionality. Would it be enough to also scan for the additional *_HEVC.MOV in |
What version broke that functionality? |
I can't say if or when it worked before, as I am a new user of icloudpd. I didn't test older versions than 1.8.1. |
I'll assume that it is missing functionality, rather than broken one until proven otherwise. |
I think you're right, it seems it never worked. In test_autodelete_photos.py there is also no testcase for autodeleting live photos. Implementing this should be really simple, as there is just another check for |
I looked at the code a number of weeks back and it seemed to me that to solve this problem, one needs to implement reverse de-duping. To complete that reversal, I envisioned that it would be better to refactor file naming logic into separate function first. Since that seemed reasonably big chunk of work, I decided to tackle smaller changes first to refresh my memory of the codebase, while keeping code separation as a sub-goal. If you want to contribute even with a small improvement, you are welcome to do so. Please keep tests updated, so when more changes come, we are protected from regressions. |
+1 on this, would really love to see this implemented when possible. Right now some local assets are being removed and some are not. |
@AndreyNikiforov any updates on this? I could write a simple fix, but I'm having problems getting proper test data. |
No progress. Updating existing and writing new tests that require setting proper state in the icloud account are main blockers for any major refactoring for anybody, including myself. I am looking for ways to decouple logic from icloud interface, so they can be tested separately, but not successful yet. |
Hi @AndreyNikiforov, |
Could any created .jpg files be deleted too? |
@syl779 what is the use case where jpg files are not deleted? IIUC jpg can only be a main file and there are no known problems with deleting main file. This issue is about deleting secondary file for the asset. |
I mean I take a photo, it gets downloaded in .heic format, the .mov file for the liveview also gets downloaded and a .jpg is created (convert_heic_to_jpeg). Then I delete the photo on my phone. The .heic file gets deleted next time icloudpd runs but the .mov and .jpg files remain. |
What container are you using? Heic to jpg conversion is not provided by |
If it's my container, the function that's being requested already exists, and is detailed in the documentation. |
Any news? |
Seems to be working fine in latest version (1.19.0) #863 |
Overview
Im using the command line option --auto-delete to delete files in the recently deleted folder.
The image is a Live Photo, so it consists 2 files. The HEIC file and the corresponding _HEVC.MOV file. The HEIC gets deleted, but the MOV does not.
Steps to Reproduce
Expected Behavior
Not only the HEIC file should be deleted after the 4th step, but the corresponding _HEVC.MOV file also
Actual Behavior
HEIC is deleted, but the _HEVC,MOV file does not.
Context
The text was updated successfully, but these errors were encountered: