Skip to content

Commit

Permalink
minor tweaks import exif into database
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Jul 3, 2024
1 parent 50d8798 commit b28d5d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lib_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def dbInsertImage(self,ImageFileSubpathFilename):
EXIF_Field = re.sub('[^a-zA-Z0-9_\.]', '_', EXIF_Field)

if not EXIF_Field in ['File_Name','Directory']:
EXIF_Value = re.sub('[^a-zA-Z0-9_\.,:;\ ]', '_', EXIF_Value)
EXIF_Value = EXIF_Value.replace('"', '"')
EXIF_Value = EXIF_Value.replace("'", ''')
EXIF_Value = re.sub('[^a-zA-Z0-9_\-+\.,:;\ &#/()\[\]]', '_', EXIF_Value)

if not EXIF_Field:
continue
Expand Down

0 comments on commit b28d5d1

Please sign in to comment.