Skip to content

Commit

Permalink
Add helpful skipReason when filename is too long for exiftool.
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyXorb committed Dec 9, 2022
1 parent 3a446a4 commit 9a6ca46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/general/mediatransitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def getSuccesfulChangedXMPTasksOf(self, tasks: List[TransitionTask]):
task.skipReason = (
f"Problem setting XMP data {task.XMPTags} with exiftool: {e}"
)
if len(str(self.toTreat[task.index])) > 260:
task.skipReason += f"Filename is too long. Exiftool supports only 260 characters."

return self.getNonSkippedOf(tasks)

Expand Down

0 comments on commit 9a6ca46

Please sign in to comment.