Skip to content

Commit

Permalink
use recording defaults for custom metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jun 11, 2024
1 parent 08b4c79 commit 73b210f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/fields/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73b210f

Please sign in to comment.