Bug fix for missing RAW images during export
This commit is contained in:
@@ -534,7 +534,12 @@ class PhotoExporter:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# guess at most likely raw name
|
# guess at most likely raw name
|
||||||
raw_ext = get_preferred_uti_extension(self.photo.uti_raw) or "raw"
|
raw_ext = (
|
||||||
|
get_preferred_uti_extension(self.photo.uti_raw)
|
||||||
|
if self.photo.uti_raw
|
||||||
|
else "raw"
|
||||||
|
)
|
||||||
|
raw_ext = raw_ext or "raw"
|
||||||
raw_name = dest.parent / f"{dest.stem}.{raw_ext}"
|
raw_name = dest.parent / f"{dest.stem}.{raw_ext}"
|
||||||
all_results.missing.append(raw_name)
|
all_results.missing.append(raw_name)
|
||||||
verbose(
|
verbose(
|
||||||
|
|||||||
@@ -809,8 +809,7 @@ class PhotoInfo:
|
|||||||
if self._db._photos_ver < 7:
|
if self._db._photos_ver < 7:
|
||||||
return self._info["UTI_raw"]
|
return self._info["UTI_raw"]
|
||||||
|
|
||||||
rawpath = self.path_raw
|
if rawpath := self.path_raw:
|
||||||
if rawpath:
|
|
||||||
return get_uti_for_extension(pathlib.Path(rawpath).suffix)
|
return get_uti_for_extension(pathlib.Path(rawpath).suffix)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user