pablo33 / Shotwell-event2folder

Shotwell event to folder structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto date "no date" photos.

pablo33 opened this issue · comments

ok, it could be nice if the software could auto assign a date by retrieving it from the filename. You can get functions from Photodeliver script and implement them directly on the code.

I think this new function should act before the file movements. Nice coding!

Ok, maybe I can process the "No date" event and:

  • Retrieve a date from the title or the photo path.
    • Some rules have to be defined.
  • Fetch the File Date of Creation from Stat for files with no date found.
  • Insert the date as metadata into the image
  • Found an event in the Shotwell's database to add the image or, create a new event.
  • Assign an import date to all moved photos, so you can filter them by import-date.

I'll pick a mediainfo function from Photodeliver.py an see what I can do.
I have to modify or guess in some way the user locale date format in order to effectively retrieve the date.

Added two parameters:

autodate = False / True (Default False), to activate this routine.
assignstat = False / True (Default False), to force assign a date from the file system (stat) if a no valid date is found on the filename.

More information about how it works on the Wiki page.