tommyblue / smugmug-backup

Makes a full backup of a SmugMug account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overwrite file creation date with upload date

Uberpainer opened this issue · comments

Hi,

I have stumple upon your fine little app and it really works very good. I have a special need that I hope you might be able to help me solve or guide me in the right direction.

I have a album online at Smugmug that both my wife and I has contributed to. Issue is that for a year ago did timestamps sudden fuckup everything in th album so now the album is sorted by upload data.

My hope for help is to slightly modify you app to populate the file creation date to be replaced with the DateTimeUploaded value.

Can you maybe give me a hint on how i make this small change?

Regards
Anders Jensen

Hi @Uberpainer , sorry I'm so late with my reply 😓
If I understand correctly, you want to change the file creation date in your disk, right? Currently the software uses the setChTime function to set the file mtime. The function tries with the AlbumImage.DateTimeOriginal field or calls the imageTimestamp function if the first attempt fails

To use the AlbumImage.DateTimeUploaded field, you should add the field to the albumImage struct (after DateTimeOriginal), then use it in the setChTime. Obviously you should not replace the default behaviour, so it could be a configurable option.

To do that, you should add the option to the Conf struct. It could be something like UseDateTimeUploadedTime. It requires some coding here and there but you can use UseMetadataTimes as reference (it does a very similar thing).

Let me know if you want to give it a shot, I can help you with blocking points 😄

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.