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

Function checkXmltvChannel

html/js/menu_ts.js:1987–2019  ·  view source on GitHub ↗
(id, element, xmlFile)

Source from the content-addressed store, hash-verified

1985 }
1986}
1987function checkXmltvChannel(id, element, xmlFile) {
1988 var value = element.value;
1989 var bool;
1990 var checkbox = document.getElementById('active');
1991 var channel = SERVER["xepg"]["epgMapping"][id];
1992 var updateLogo;
1993 if (value == "-") {
1994 bool = false;
1995 }
1996 else {
1997 bool = true;
1998 }
1999 checkbox.checked = bool;
2000 checkbox.className = "changed";
2001 console.log(xmlFile);
2002 // Kanallogo aktualisieren
2003 /*
2004 updateLogo = (document.getElementById("update-icon") as HTMLInputElement).checked
2005 console.log(updateLogo);
2006 */
2007 if (xmlFile != "Threadfin Dummy" && bool == true) {
2008 //(document.getElementById("update-icon") as HTMLInputElement).checked = true;
2009 //(document.getElementById("update-icon") as HTMLInputElement).className = "changed";
2010 console.log("ID", id);
2011 changeChannelLogo(id);
2012 return;
2013 }
2014 if (xmlFile == "Threadfin Dummy") {
2015 document.getElementById("update-icon").checked = false;
2016 document.getElementById("update-icon").className = "changed";
2017 }
2018 return;
2019}
2020function changeChannelLogo(epgMapId) {
2021 const channel = SERVER['xepg']['epgMapping'][epgMapId];
2022 const xmlTvFileSelect = document.getElementById('popup-xmltv');

Callers 1

setXmltvChannelFunction · 0.70

Calls 1

changeChannelLogoFunction · 0.70

Tested by

no test coverage detected