diff --git a/src/controllers/livetvtuner.html b/src/controllers/livetvtuner.html index 29940a9141..eca335a2eb 100644 --- a/src/controllers/livetvtuner.html +++ b/src/controllers/livetvtuner.html @@ -62,6 +62,14 @@
${EnableStreamLoopingHelp}
+
+ +
${IgnoreDtsHelp}
+
+

${DrmChannelsNotImported}


diff --git a/src/controllers/livetvtuner.js b/src/controllers/livetvtuner.js index dde8a10331..6b798c6c4a 100644 --- a/src/controllers/livetvtuner.js +++ b/src/controllers/livetvtuner.js @@ -61,6 +61,7 @@ function fillTunerHostInfo(view, info) { view.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly; view.querySelector('.chkTranscode').checked = info.AllowHWTranscoding; view.querySelector('.chkStreamLoop').checked = info.EnableStreamLooping; + view.querySelector('.chkIgnoreDts').checked = info.IgnoreDts; view.querySelector('.txtTunerCount').value = info.TunerCount || '0'; } @@ -75,7 +76,8 @@ function submitForm(page) { TunerCount: page.querySelector('.txtTunerCount').value || 0, ImportFavoritesOnly: page.querySelector('.chkFavorite').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)) { @@ -120,6 +122,7 @@ function onTypeChange() { const supportsTunerIpAddress = value === 'hdhomerun'; const supportsTunerFileOrUrl = value === 'm3u'; const supportsStreamLooping = value === 'm3u'; + const supportsIgnoreDts = value === 'm3u'; const supportsTunerCount = value === 'm3u'; const supportsUserAgent = value === 'm3u'; const suppportsSubmit = value !== 'other'; @@ -168,6 +171,12 @@ function onTypeChange() { view.querySelector('.fldStreamLoop').classList.add('hide'); } + if (supportsIgnoreDts) { + view.querySelector('.fldIgnoreDts').classList.remove('hide'); + } else { + view.querySelector('.fldIgnoreDts').classList.add('hide'); + } + if (supportsTunerCount) { view.querySelector('.fldTunerCount').classList.remove('hide'); view.querySelector('.txtTunerCount').setAttribute('required', 'required'); diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 3d02560e2a..aad75e49be 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -506,6 +506,8 @@ "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.", "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", "Images": "Images", "ImportFavoriteChannelsHelp": "Only channels that are marked as favorite on the tuner device will be imported.",