diff --git a/CHANGELOG.md b/CHANGELOG.md
index e46bffe1..0de26314 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- **Performance**: EPG program parsing optimized for sources with many channels but only a fraction mapped. Now parses XML file once per source instead of once per channel, dramatically reducing I/O and CPU overhead. For sources with 10,000 channels and 100 mapped, this results in ~99x fewer file opens and ~100x fewer full file scans. Orphaned programs for unmapped channels are also cleaned up during refresh to prevent database bloat. Database updates are now atomic to prevent clients from seeing empty/partial EPG data during refresh.
+- EPG table now displays detailed status messages including refresh progress, success messages, and last message for idle sources (matching M3U table behavior)
- IPv6 access now allowed by default with all IPv6 CIDRs accepted - Thanks [@adrianmace](https://github.com/adrianmace)
- nginx.conf updated to bind to both IPv4 and IPv6 ports - Thanks [@jordandalley](https://github.com/jordandalley)
diff --git a/frontend/src/components/tables/EPGsTable.jsx b/frontend/src/components/tables/EPGsTable.jsx
index 71e920e0..b8dfeb6d 100644
--- a/frontend/src/components/tables/EPGsTable.jsx
+++ b/frontend/src/components/tables/EPGsTable.jsx
@@ -160,6 +160,9 @@ const EPGsTable = () => {
case 'downloading':
label = 'Downloading';
break;
+ case 'extracting':
+ label = 'Extracting';
+ break;
case 'parsing_channels':
label = 'Parsing Channels';
break;
@@ -170,6 +173,22 @@ const EPGsTable = () => {
return null;
}
+ // Build additional info string from progress data
+ let additionalInfo = '';
+ if (progress.message) {
+ additionalInfo = progress.message;
+ } else if (
+ progress.processed !== undefined &&
+ progress.channels !== undefined
+ ) {
+ additionalInfo = `${progress.processed.toLocaleString()} programs for ${progress.channels} channels`;
+ } else if (
+ progress.processed !== undefined &&
+ progress.total !== undefined
+ ) {
+ additionalInfo = `${progress.processed.toLocaleString()} / ${progress.total.toLocaleString()}`;
+ }
+
return (
@@ -181,7 +200,14 @@ const EPGsTable = () => {
style={{ margin: '2px 0' }}
/>
{progress.speed && (
- Speed: {parseInt(progress.speed)} KB/s
+
+ Speed: {parseInt(progress.speed)} KB/s
+
+ )}
+ {additionalInfo && (
+
+ {additionalInfo}
+
)}
);
@@ -286,14 +312,35 @@ const EPGsTable = () => {
// Show success message for successful sources
if (data.status === 'success') {
+ const successMessage =
+ data.last_message || 'EPG data refreshed successfully';
return (
-
- EPG data refreshed successfully
-
+
+
+ {successMessage}
+
+
+ );
+ }
+
+ // Show last_message for idle sources (from previous refresh)
+ if (data.status === 'idle' && data.last_message) {
+ return (
+
+
+ {data.last_message}
+
+
);
}