@@ -68,7 +68,6 @@ class MetadataWriter:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def sidecar_path(self) -> Path:
|
def sidecar_path(self) -> Path:
|
||||||
...
|
|
||||||
return Path()
|
return Path()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -83,11 +82,10 @@ class MetadataWriter:
|
|||||||
|
|
||||||
def set_metadata(self):
|
def set_metadata(self):
|
||||||
if self.sidecar_path.exists():
|
if self.sidecar_path.exists():
|
||||||
params=["-overwrite_original"]
|
params = ["-overwrite_original"]
|
||||||
else:
|
else:
|
||||||
params=["-o", "%f.xmp"]
|
params = ["-o", "%f.xmp"]
|
||||||
# TODO
|
# TODO
|
||||||
...
|
|
||||||
|
|
||||||
def write_caption(self, caption: Caption):
|
def write_caption(self, caption: Caption):
|
||||||
existing = self.metadata.get(XMP_KEYS_CAPTION[0], "")
|
existing = self.metadata.get(XMP_KEYS_CAPTION[0], "")
|
||||||
@@ -98,7 +96,6 @@ class MetadataWriter:
|
|||||||
caption = f"{existing}. {_prefixed(caption)}"
|
caption = f"{existing}. {_prefixed(caption)}"
|
||||||
metadata_tags = {key: caption for key in XMP_KEYS_CAPTION}
|
metadata_tags = {key: caption for key in XMP_KEYS_CAPTION}
|
||||||
# TODO
|
# TODO
|
||||||
...
|
|
||||||
|
|
||||||
def write_keywords(self, keywords: Keywords): ...
|
def write_keywords(self, keywords: Keywords): ...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user