mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Merge pull request #4181 from SenorSmartyPants/EditChannelHeight
This commit is contained in:
commit
448789400b
@ -153,6 +153,7 @@ function onSubmit(e) {
|
||||
DateCreated: getDateValue(form, '#txtDateAdded', 'DateCreated'),
|
||||
EndDate: getDateValue(form, '#txtEndDate', 'EndDate'),
|
||||
ProductionYear: form.querySelector('#txtProductionYear').value,
|
||||
Height: form.querySelector('#selectHeight').value,
|
||||
AspectRatio: form.querySelector('#txtOriginalAspectRatio').value,
|
||||
Video3DFormat: form.querySelector('#select3dFormat').value,
|
||||
|
||||
@ -650,6 +651,12 @@ function setFieldVisibilities(context, item) {
|
||||
hideElement('#fldPlaceOfBirth');
|
||||
}
|
||||
|
||||
if (item.MediaType === 'Video' && item.Type === 'TvChannel') {
|
||||
showElement('#fldHeight');
|
||||
} else {
|
||||
hideElement('#fldHeight');
|
||||
}
|
||||
|
||||
if (item.MediaType === 'Video' && item.Type !== 'TvChannel') {
|
||||
showElement('#fldOriginalAspectRatio');
|
||||
} else {
|
||||
@ -828,6 +835,8 @@ function fillItemInfo(context, item, parentalRatingOptions) {
|
||||
const placeofBirth = item.ProductionLocations?.length ? item.ProductionLocations[0] : '';
|
||||
context.querySelector('#txtPlaceOfBirth').value = placeofBirth;
|
||||
|
||||
context.querySelector('#selectHeight').value = item.Height || '';
|
||||
|
||||
context.querySelector('#txtOriginalAspectRatio').value = item.AspectRatio || '';
|
||||
|
||||
context.querySelector('#selectLanguage').value = item.PreferredMetadataLanguage || '';
|
||||
|
@ -142,6 +142,16 @@
|
||||
<select is="emby-select" id="selectCustomRating" label="${LabelCustomRating}"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fldHeight" class="selectContainer hide">
|
||||
<select is="emby-select" id="selectHeight" label="${MediaInfoResolution}">
|
||||
<option value="0"></option>
|
||||
<option value="480">${ChannelResolutionSD}</option>
|
||||
<option value="576">${ChannelResolutionSDPAL}</option>
|
||||
<option value="720">${ChannelResolutionHD}</option>
|
||||
<option value="1080">${ChannelResolutionFullHD}</option>
|
||||
<option value="2160">${ChannelResolutionUHD4K}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="inlineForm">
|
||||
<div id="fldOriginalAspectRatio" class="inputContainer hide">
|
||||
<input is="emby-input" id="txtOriginalAspectRatio" type="text" label="${LabelOriginalAspectRatio}" />
|
||||
|
@ -134,6 +134,11 @@
|
||||
"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.",
|
||||
"ChannelAccessHelp": "Select the channels to share with this user. Administrators will be able to edit all channels using the metadata manager.",
|
||||
"ChannelResolutionSD": "SD",
|
||||
"ChannelResolutionSDPAL": "SD (PAL)",
|
||||
"ChannelResolutionHD": "HD",
|
||||
"ChannelResolutionFullHD": "Full HD",
|
||||
"ChannelResolutionUHD4K": "UHD (4K)",
|
||||
"ChannelNameOnly": "Channel {0} only",
|
||||
"ChannelNumber": "Channel number",
|
||||
"Channels": "Channels",
|
||||
|
Loading…
Reference in New Issue
Block a user