feat(audiobook_library): opus support for write_metadata

This commit is contained in:
lucas committed 2026-10-31 16:23:50 +01:00
1 parent 80e6587888
commit 21619c45af
1 file changed
+10
@@ -201,6 +201,16 @@ def write_metadata(file, fields, values, dry_run=False):
tags.save()
elif suffix == ".opus":
tags = OggOpus(file)
for field, value in changes.items():
if value:
tags[field] = [value]
else:
tags.pop(field, None)
tags.save()
else:
logger.warning(f"Unsupported file type: {file}")