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

Function checkXmltvChannel

ts/menu_ts.ts:2430–2472  ·  view source on GitHub ↗
(id: string, element: any, xmlFile)

Source from the content-addressed store, hash-verified

2428}
2429
2430function checkXmltvChannel(id: string, element: any, xmlFile) {
2431
2432 var value = (element as HTMLSelectElement).value
2433 var bool: boolean
2434 var checkbox = document.getElementById('active')
2435 var channel: any = SERVER["xepg"]["epgMapping"][id]
2436 var updateLogo: boolean
2437
2438
2439 if (value == "-") {
2440 bool = false
2441 } else {
2442 bool = true
2443 }
2444
2445 (checkbox as HTMLInputElement).checked = bool
2446 checkbox.className = "changed"
2447 console.log(xmlFile);
2448
2449 // Kanallogo aktualisieren
2450 /*
2451 updateLogo = (document.getElementById("update-icon") as HTMLInputElement).checked
2452 console.log(updateLogo);
2453 */
2454
2455 if (xmlFile != "Threadfin Dummy" && bool == true) {
2456
2457 //(document.getElementById("update-icon") as HTMLInputElement).checked = true;
2458 //(document.getElementById("update-icon") as HTMLInputElement).className = "changed";
2459
2460 console.log("ID", id)
2461 changeChannelLogo(id)
2462
2463 return
2464 }
2465
2466 if (xmlFile == "Threadfin Dummy") {
2467 (document.getElementById("update-icon") as HTMLInputElement).checked = false;
2468 (document.getElementById("update-icon") as HTMLInputElement).className = "changed";
2469 }
2470
2471 return
2472}
2473
2474function changeChannelLogo(epgMapId: string) {
2475

Callers 1

setXmltvChannelFunction · 0.70

Calls 1

changeChannelLogoFunction · 0.70

Tested by

no test coverage detected