mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make Height editable on TV Channels
This commit is contained in:
parent
a3552b2d07
commit
2b71524c4f
3 changed files with 15 additions and 0 deletions
|
@ -153,6 +153,7 @@ function onSubmit(e) {
|
||||||
DateCreated: getDateValue(form, '#txtDateAdded', 'DateCreated'),
|
DateCreated: getDateValue(form, '#txtDateAdded', 'DateCreated'),
|
||||||
EndDate: getDateValue(form, '#txtEndDate', 'EndDate'),
|
EndDate: getDateValue(form, '#txtEndDate', 'EndDate'),
|
||||||
ProductionYear: form.querySelector('#txtProductionYear').value,
|
ProductionYear: form.querySelector('#txtProductionYear').value,
|
||||||
|
Height: form.querySelector('#txtHeight').value,
|
||||||
AspectRatio: form.querySelector('#txtOriginalAspectRatio').value,
|
AspectRatio: form.querySelector('#txtOriginalAspectRatio').value,
|
||||||
Video3DFormat: form.querySelector('#select3dFormat').value,
|
Video3DFormat: form.querySelector('#select3dFormat').value,
|
||||||
|
|
||||||
|
@ -650,6 +651,12 @@ function setFieldVisibilities(context, item) {
|
||||||
hideElement('#fldPlaceOfBirth');
|
hideElement('#fldPlaceOfBirth');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.MediaType === 'Video' && item.Type === 'TvChannel') {
|
||||||
|
showElement('#fldHeight');
|
||||||
|
} else {
|
||||||
|
hideElement('#fldHeight');
|
||||||
|
}
|
||||||
|
|
||||||
if (item.MediaType === 'Video' && item.Type !== 'TvChannel') {
|
if (item.MediaType === 'Video' && item.Type !== 'TvChannel') {
|
||||||
showElement('#fldOriginalAspectRatio');
|
showElement('#fldOriginalAspectRatio');
|
||||||
} else {
|
} else {
|
||||||
|
@ -828,6 +835,8 @@ function fillItemInfo(context, item, parentalRatingOptions) {
|
||||||
const placeofBirth = item.ProductionLocations?.length ? item.ProductionLocations[0] : '';
|
const placeofBirth = item.ProductionLocations?.length ? item.ProductionLocations[0] : '';
|
||||||
context.querySelector('#txtPlaceOfBirth').value = placeofBirth;
|
context.querySelector('#txtPlaceOfBirth').value = placeofBirth;
|
||||||
|
|
||||||
|
context.querySelector('#txtHeight').value = item.Height || '';
|
||||||
|
|
||||||
context.querySelector('#txtOriginalAspectRatio').value = item.AspectRatio || '';
|
context.querySelector('#txtOriginalAspectRatio').value = item.AspectRatio || '';
|
||||||
|
|
||||||
context.querySelector('#selectLanguage').value = item.PreferredMetadataLanguage || '';
|
context.querySelector('#selectLanguage').value = item.PreferredMetadataLanguage || '';
|
||||||
|
|
|
@ -142,6 +142,10 @@
|
||||||
<select is="emby-select" id="selectCustomRating" label="${LabelCustomRating}"></select>
|
<select is="emby-select" id="selectCustomRating" label="${LabelCustomRating}"></select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="fldHeight" class="inputContainer hide">
|
||||||
|
<input is="emby-input" id="txtHeight" type="number" pattern="[0-9]*" label="${LabelHeight}" />
|
||||||
|
<div class="fieldDescription">${ChannelHeightHelp}</div>
|
||||||
|
</div>
|
||||||
<div class="inlineForm">
|
<div class="inlineForm">
|
||||||
<div id="fldOriginalAspectRatio" class="inputContainer hide">
|
<div id="fldOriginalAspectRatio" class="inputContainer hide">
|
||||||
<input is="emby-input" id="txtOriginalAspectRatio" type="text" label="${LabelOriginalAspectRatio}" />
|
<input is="emby-input" id="txtOriginalAspectRatio" type="text" label="${LabelOriginalAspectRatio}" />
|
||||||
|
|
|
@ -134,6 +134,7 @@
|
||||||
"Categories": "Categories",
|
"Categories": "Categories",
|
||||||
"ChangingMetadataImageSettingsNewContent": "Changes to metadata or artwork downloading settings will only apply to new content added to your library. To apply the changes to existing titles, you'll need to refresh their metadata manually.",
|
"ChangingMetadataImageSettingsNewContent": "Changes to metadata or artwork downloading settings will only apply to new content added to your library. To apply the changes to existing titles, you'll need to refresh their metadata manually.",
|
||||||
"ChannelAccessHelp": "Select the channels to share with this user. Administrators will be able to edit all channels using the metadata manager.",
|
"ChannelAccessHelp": "Select the channels to share with this user. Administrators will be able to edit all channels using the metadata manager.",
|
||||||
|
"ChannelHeightHelp": "Set height of video received on this channel. 720 or greater will mark this channel as HD.",
|
||||||
"ChannelNameOnly": "Channel {0} only",
|
"ChannelNameOnly": "Channel {0} only",
|
||||||
"ChannelNumber": "Channel number",
|
"ChannelNumber": "Channel number",
|
||||||
"Channels": "Channels",
|
"Channels": "Channels",
|
||||||
|
@ -648,6 +649,7 @@
|
||||||
"LabelHardwareAccelerationType": "Hardware acceleration",
|
"LabelHardwareAccelerationType": "Hardware acceleration",
|
||||||
"LabelHardwareAccelerationTypeHelp": "Hardware acceleration requires additional configuration.",
|
"LabelHardwareAccelerationTypeHelp": "Hardware acceleration requires additional configuration.",
|
||||||
"LabelHardwareEncoding": "Hardware encoding",
|
"LabelHardwareEncoding": "Hardware encoding",
|
||||||
|
"LabelHeight": "Height",
|
||||||
"LabelHomeNetworkQuality": "Home network quality",
|
"LabelHomeNetworkQuality": "Home network quality",
|
||||||
"LabelHomeScreenSectionValue": "Home screen section {0}",
|
"LabelHomeScreenSectionValue": "Home screen section {0}",
|
||||||
"LabelHttpsPort": "Local HTTPS port number",
|
"LabelHttpsPort": "Local HTTPS port number",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue