Updated examples [skip ci]
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user