Skip to content

Commit

Permalink
Add dropdown with common broadcast video heights
Browse files Browse the repository at this point in the history
  • Loading branch information
SenorSmartyPants authored and thornbill committed Feb 21, 2024
1 parent 7e2b14b commit d73f506
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/metadataEditor/metadataEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function onSubmit(e) {
DateCreated: getDateValue(form, '#txtDateAdded', 'DateCreated'),
EndDate: getDateValue(form, '#txtEndDate', 'EndDate'),
ProductionYear: form.querySelector('#txtProductionYear').value,
Height: form.querySelector('#txtHeight').value,
Height: form.querySelector('#selectHeight').value,
AspectRatio: form.querySelector('#txtOriginalAspectRatio').value,
Video3DFormat: form.querySelector('#select3dFormat').value,

Expand Down Expand Up @@ -835,7 +835,7 @@ function fillItemInfo(context, item, parentalRatingOptions) {
const placeofBirth = item.ProductionLocations?.length ? item.ProductionLocations[0] : '';
context.querySelector('#txtPlaceOfBirth').value = placeofBirth;

context.querySelector('#txtHeight').value = item.Height || '';
context.querySelector('#selectHeight').value = item.Height || '';

context.querySelector('#txtOriginalAspectRatio').value = item.AspectRatio || '';

Expand Down
11 changes: 9 additions & 2 deletions src/components/metadataEditor/metadataEditor.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,15 @@ <h3 class="formDialogHeaderTitle">
<select is="emby-select" id="selectCustomRating" label="${LabelCustomRating}"></select>
</div>
</div>
<div id="fldHeight" class="inputContainer hide">
<input is="emby-input" id="txtHeight" type="number" pattern="[0-9]*" label="${LabelHeight}" />
<div id="fldHeight" class="selectContainer hide">
<select is="emby-select" id="selectHeight" label="${LabelHeight}">
<option value="0"></option>
<option>480</option>
<option>576</option>
<option>720</option>
<option>1080</option>
<option>2160</option>
</select>
<div class="fieldDescription">${ChannelHeightHelp}</div>
</div>
<div class="inlineForm">
Expand Down

0 comments on commit d73f506

Please sign in to comment.