MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / changeChannelLogo

Function changeChannelLogo

html/js/menu_ts.js:2020–2036  ·  view source on GitHub ↗
(epgMapId)

Source from the content-addressed store, hash-verified

2018 return;
2019}
2020function changeChannelLogo(epgMapId) {
2021 const channel = SERVER['xepg']['epgMapping'][epgMapId];
2022 const xmlTvFileSelect = document.getElementById('popup-xmltv');
2023 const xmlTvFile = xmlTvFileSelect.options[xmlTvFileSelect.selectedIndex].value;
2024 const xmlTvIdInput = document.getElementById('xmltv-id-picker-input');
2025 const newXmlTvId = xmlTvIdInput.value;
2026 const updateLogo = !BULK_EDIT || document.getElementById('update-icon').checked;
2027 let logo;
2028 if (updateLogo == true && xmlTvFile != 'Threadfin Dummy') {
2029 if (SERVER['xepg']['xmltvMap'][xmlTvFile].hasOwnProperty(newXmlTvId)) {
2030 logo = SERVER['xepg']['xmltvMap'][xmlTvFile][newXmlTvId]['icon'];
2031 }
2032 else {
2033 logo = channel['tvg-logo'];
2034 }
2035 }
2036}
2037function savePopupData(dataType, id, remove, option) {
2038 if (dataType == "mapping") {
2039 var data = new Object();

Callers 1

checkXmltvChannelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected