Refactored UTI utils to get ready for Monterey

This commit is contained in:
Rhet Turnbull
2021-06-29 09:31:22 -07:00
parent 64fd852535
commit d034605784
10 changed files with 690 additions and 37 deletions

View File

@@ -44,7 +44,7 @@ def generate_sidecars(dbname, uuid_dict):
file.write(xmp)
# with extension
ext = osxphotos.utils.get_preferred_uti_extension(photo.uti)
ext = osxphotos.uti.get_preferred_uti_extension(photo.uti)
ext = "jpg" if ext == "jpeg" else ext
sidecar = str(pathlib.Path(SIDECAR_DIR) / f"{uuid}_ext.xmp")
xmp = photo._xmp_sidecar(extension=ext)