Improvment: Replacing change EPG menu.

This commit is contained in:
Johnnybegood90
2026-03-14 01:18:02 +01:00
parent 30c0de2a2d
commit de0e1adf44
4 changed files with 77 additions and 8 deletions
+2 -4
View File
@@ -13,8 +13,7 @@ window.addEventListener('load', () => {
if (epg) {
currentEpgUrl = epg;
currentM3uUrl = m3u;
const sel = document.getElementById('sourceSelect');
if (sel) sel.value = 'personal';
updateSourceDropdownLabel('✏ Personal EPG');
loadEPG(epg);
if (m3u) loadM3U(m3u);
return;
@@ -26,8 +25,7 @@ window.addEventListener('load', () => {
activeSourceIndex = idx;
currentEpgUrl = src.epg_url;
currentM3uUrl = src.m3u_url ?? '';
const sel = document.getElementById('sourceSelect');
if (sel) sel.value = idx;
if (src) updateSourceDropdownLabel(src.name);
}
}
loadEPG(currentEpgUrl);