diff --git a/resources/web/epg_mapping.css b/resources/web/epg_mapping.css
index 80301aa..107a3a5 100644
--- a/resources/web/epg_mapping.css
+++ b/resources/web/epg_mapping.css
@@ -169,7 +169,7 @@
height: 50px;
border-radius: 8px;
object-fit: contain;
- background: white;
+ background: #2c3e50;
padding: 5px;
border: 1px solid #dee2e6;
}
diff --git a/resources/web/epg_mapping.js b/resources/web/epg_mapping.js
index e48a784..f3d1e5b 100644
--- a/resources/web/epg_mapping.js
+++ b/resources/web/epg_mapping.js
@@ -271,6 +271,11 @@ class EPGMappingManager {
const currentMappings = mappingsResponse.ok ? await mappingsResponse.json() : { mapping: {} };
const epgData = await epgResponse.json();
+ console.log('Provider channels received:', providerChannels.channels?.length || 0);
+ console.log('Current mappings:', currentMappings);
+ console.log('Sample mapping keys:', Object.keys(currentMappings.mapping || {}).slice(0, 5));
+ console.log('Sample channel IDs:', providerChannels.channels?.slice(0, 5).map(c => c.Id) || []);
+
// Store EPG channels with their display names
this.epgChannels = epgData.channels || [];
this.epgChannelMap = epgData.channel_map || {}; // Map of id -> display name
@@ -284,6 +289,9 @@ class EPGMappingManager {
let currentEpgId = null;
const mappingValue = currentMappings.mapping?.[channelId];
+
+ console.log(`Channel ${channelId}: mapping value =`, mappingValue);
+
if (typeof mappingValue === 'string') {
currentEpgId = mappingValue;
} else if (mappingValue && mappingValue.epg_id) {
@@ -355,6 +363,7 @@ class EPGMappingManager {
${channel.logo ? `` : ''}