jmathai / elodie

An EXIF-based photo assistant, organizer and workflow automation tool.
https://bit.ly/introducing-elodie
Apache License 2.0
1.27k stars 139 forks source link

When setting an album for a video and then later setting its title reverts the album #89

Open jmathai opened 8 years ago

jmathai commented 8 years ago

When you set the album of a video and then set the title in a separate command it removes the previous album which was set. Here's an example.

### Import
➜  elodie git:(master) ✗ ./elodie.py import --file=/Users/jaisenmathai/Downloads/photo-test/img_8545.mov --destination=/Users/jaisenmathai/Downloads/photo-test/My\ Photos
/Users/jaisenmathai/Downloads/photo-test/img_8545.mov -> /Users/jaisenmathai/Downloads/photo-test/My Photos/2014-09-Sep/Mount Shasta/2014-09-18_15-38-49-img_8545.mov

### Update Album
➜  elodie git:(master) ✗ ./elodie.py update --album="TEST ALBUM" /Users/jaisenmathai/Downloads/photo-test/My\ Photos/2014-09-Sep/Mount\ Shasta/2014-09-18_15-38-49-img_8545.mov
{"source":"/Users/jaisenmathai/Downloads/photo-test/My Photos/2014-09-Sep/Mount Shasta/2014-09-18_15-38-49-img_8545.mov", "destination":"/Users/jaisenmathai/Downloads/photo-test/My Photos/2014-09-Sep/TEST ALBUM/2014-09-18_15-38-49-img_8545.mov"}

### Update Title
➜  elodie git:(master) ✗ ./elodie.py update --title="TEST TITLE" /Users/jaisenmathai/Downloads/photo-test/My\ Photos/2014-09-Sep/TEST\ ALBUM/2014-09-18_15-38-49-img_8545.mov
{"source":"/Users/jaisenmathai/Downloads/photo-test/My Photos/2014-09-Sep/TEST ALBUM/2014-09-18_15-38-49-img_8545.mov", "destination":"/Users/jaisenmathai/Downloads/photo-test/My Photos/2014-09-Sep/California/2014-09-18_15-38-49-img_8545-test-title.mov"}
jmathai commented 8 years ago

Looks like the problem is that avmetareadwrite removes the EXIF tag we are using for Album. I consider this a bug resulting from gh-62.