Updated examples [skip ci]

This commit is contained in:
Rhet Turnbull
2022-06-12 21:56:46 -07:00
parent f47aa72165
commit 04c2f6121a

View File

@@ -25,7 +25,7 @@ def main():
continue continue
# Photos stores some data in photo.exif but the rating data must be extracted with exiftool # Photos stores some data in photo.exif but the rating data must be extracted with exiftool
exif = photo.exiftool.asdict() if exif := photo.exiftool:
# I think SONY uses XMP:Rating but also check EXIF:Rating # I think SONY uses XMP:Rating but also check EXIF:Rating
xmp_rating = exif.get("XMP:Rating", 0) xmp_rating = exif.get("XMP:Rating", 0)
exif_rating = exif.get("EXIF:Rating", 0) exif_rating = exif.get("EXIF:Rating", 0)