1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add configurable IgnoreDts flag to M3U tuner

This commit is contained in:
knackebrot 2022-06-13 00:41:41 +02:00 committed by Bill Thornton
parent 1d3b297f1b
commit a67710fe2c
3 changed files with 20 additions and 1 deletions

View file

@ -62,6 +62,14 @@
<div class="fieldDescription checkboxFieldDescription">${EnableStreamLoopingHelp}</div> <div class="fieldDescription checkboxFieldDescription">${EnableStreamLoopingHelp}</div>
</div> </div>
<div class="checkboxContainer checkboxContainer-withDescription fldIgnoreDts hide">
<label>
<input type="checkbox" is="emby-checkbox" class="chkIgnoreDts" checked />
<span>${IgnoreDts}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${IgnoreDtsHelp}</div>
</div>
<p class="drmMessage hide">${DrmChannelsNotImported}</p> <p class="drmMessage hide">${DrmChannelsNotImported}</p>
<br /> <br />
<input type="hidden" class="fldDeviceId" /> <input type="hidden" class="fldDeviceId" />

View file

@ -61,6 +61,7 @@ function fillTunerHostInfo(view, info) {
view.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly; view.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly;
view.querySelector('.chkTranscode').checked = info.AllowHWTranscoding; view.querySelector('.chkTranscode').checked = info.AllowHWTranscoding;
view.querySelector('.chkStreamLoop').checked = info.EnableStreamLooping; view.querySelector('.chkStreamLoop').checked = info.EnableStreamLooping;
view.querySelector('.chkIgnoreDts').checked = info.IgnoreDts;
view.querySelector('.txtTunerCount').value = info.TunerCount || '0'; view.querySelector('.txtTunerCount').value = info.TunerCount || '0';
} }
@ -75,7 +76,8 @@ function submitForm(page) {
TunerCount: page.querySelector('.txtTunerCount').value || 0, TunerCount: page.querySelector('.txtTunerCount').value || 0,
ImportFavoritesOnly: page.querySelector('.chkFavorite').checked, ImportFavoritesOnly: page.querySelector('.chkFavorite').checked,
AllowHWTranscoding: page.querySelector('.chkTranscode').checked, AllowHWTranscoding: page.querySelector('.chkTranscode').checked,
EnableStreamLooping: page.querySelector('.chkStreamLoop').checked EnableStreamLooping: page.querySelector('.chkStreamLoop').checked,
IgnoreDts: page.querySelector('.chkIgnoreDts').checked
}; };
if (isM3uVariant(info.Type)) { if (isM3uVariant(info.Type)) {
@ -120,6 +122,7 @@ function onTypeChange() {
const supportsTunerIpAddress = value === 'hdhomerun'; const supportsTunerIpAddress = value === 'hdhomerun';
const supportsTunerFileOrUrl = value === 'm3u'; const supportsTunerFileOrUrl = value === 'm3u';
const supportsStreamLooping = value === 'm3u'; const supportsStreamLooping = value === 'm3u';
const supportsIgnoreDts = value === 'm3u';
const supportsTunerCount = value === 'm3u'; const supportsTunerCount = value === 'm3u';
const supportsUserAgent = value === 'm3u'; const supportsUserAgent = value === 'm3u';
const suppportsSubmit = value !== 'other'; const suppportsSubmit = value !== 'other';
@ -168,6 +171,12 @@ function onTypeChange() {
view.querySelector('.fldStreamLoop').classList.add('hide'); view.querySelector('.fldStreamLoop').classList.add('hide');
} }
if (supportsIgnoreDts) {
view.querySelector('.fldIgnoreDts').classList.remove('hide');
} else {
view.querySelector('.fldIgnoreDts').classList.add('hide');
}
if (supportsTunerCount) { if (supportsTunerCount) {
view.querySelector('.fldTunerCount').classList.remove('hide'); view.querySelector('.fldTunerCount').classList.remove('hide');
view.querySelector('.txtTunerCount').setAttribute('required', 'required'); view.querySelector('.txtTunerCount').setAttribute('required', 'required');

View file

@ -506,6 +506,8 @@
"Horizontal": "Horizontal", "Horizontal": "Horizontal",
"HttpsRequiresCert": "To enable secure connections, you will need to supply a trusted SSL certificate, such as Let's Encrypt. Please either supply a certificate, or disable secure connections.", "HttpsRequiresCert": "To enable secure connections, you will need to supply a trusted SSL certificate, such as Let's Encrypt. Please either supply a certificate, or disable secure connections.",
"Identify": "Identify", "Identify": "Identify",
"IgnoreDts": "Ignore DTS (decoding timestamp)",
"IgnoreDtsHelp": "Disabling this option may resolve some issues, e.g. missing audio on channels with separate audio and video streams.",
"Image": "Image", "Image": "Image",
"Images": "Images", "Images": "Images",
"ImportFavoriteChannelsHelp": "Only channels that are marked as favorite on the tuner device will be imported.", "ImportFavoriteChannelsHelp": "Only channels that are marked as favorite on the tuner device will be imported.",