Skip to content

Commit

Permalink
Fix so 'Use ID3 Button' pulls in Year from ID3 on media upload
Browse files Browse the repository at this point in the history
  • Loading branch information
btelliot committed Jan 11, 2025
1 parent 857ea9d commit 2f7a209
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/media/addedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ OB.Media.mediaInfoImport = function (button) {
$form.find(".title_field").val(OB.Media.media_info[id].comments.title[0]);
if (typeof OB.Media.media_info[id].comments.comments != "undefined")
$form.find(".comments_field").val(OB.Media.media_info[id].comments.comments[0]);
if(typeof OB.Media.media_info[id].comments.original_release_time != 'undefined')
$form.find('.year_field').val(OB.Media.media_info[id].comments.original_release_time[0]);
if(typeof OB.Media.media_info[id].comments.year != 'undefined')
$form.find('.year_field').val(OB.Media.media_info[id].comments.year[0]);

let id3Comments = OB.Media.media_info[id].comments;
Object.keys(id3Comments).forEach(function (key) {
Expand Down

0 comments on commit 2f7a209

Please sign in to comment.