From 73b210f9b96e0742664f10b6287531ebe7befd73 Mon Sep 17 00:00:00 2001 From: Sanae Date: Tue, 11 Jun 2024 19:52:34 +0000 Subject: [PATCH] use recording defaults for custom metadata --- ui/fields/media.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/fields/media.js b/ui/fields/media.js index dc3de3c2..0bad49d0 100644 --- a/ui/fields/media.js +++ b/ui/fields/media.js @@ -511,6 +511,13 @@ class OBFieldMedia extends OBField { language: OB.Settings.recording_metadata.language, }; + Object.entries(OB.Settings.recording_metadata.custom_metadata).forEach((meta) => { + let key = "metadata_" + meta[0]; + let value = meta[1]; + + mediaItem[key] = value; + }); + const media = OB.API.postPromise('media', 'save', { media: { 0: mediaItem