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