tfeldmann / organize

The file management automation tool.
http://organize.readthedocs.io
MIT License
2.34k stars 137 forks source link

EXIF Filter does not work with PDF's #419

Closed svHatch closed 1 day ago

svHatch commented 4 weeks ago

Describe the bug exiftool from the shell works on PDF files to reveal metadata. The exif tag in organize silently skips PDF files without explanation.

Either this is on purpose, in which case there should be info either in the docs or in the output of the rule that exif doesn't work on PDF files, unlike when used from the shell.

Or, this is a feature request to include PDF files in the exif filter.

Environment (please complete the following information):

Your config file

rules:
  - name: "Check exif"
    locations: "."
    filters:
      - extension: pdf
      - exif
    actions:
      - echo: "This does not work"

  - name: "No Exif"
    locations: "."
    filters:
      - extension: pdf
      - name
    actions:
      - echo: "This works"

  - name: "Try with shell"
    locations: "."
    filters:
      - extension: pdf
    actions:
      - shell: 'exiftool {path} | grep "Date/Time"'
      - echo: "{shell.output}"
tfeldmann commented 4 weeks ago

Did you set the ORGANIZE_EXIFTOOL_PATH="exiftool" variable?

tfeldmann commented 1 day ago

Found the problem. organize was expecting a Composite key in the result dictionary, which is missing for PDFs. This will be fixed in the next version.