Fixed issue with favorites list not snycing in some circumstances

This commit is contained in:
Trevor Mears
2025-12-27 21:49:22 -08:00
parent 2028ecab08
commit 762131f939
2 changed files with 48 additions and 0 deletions
+5
View File
@@ -636,6 +636,11 @@ class ChannelList {
} else {
await API.favorites.add(sourceId, channelId, 'channel');
}
// Sync to EPG Guide
if (window.app?.epgGuide) {
window.app.epgGuide.syncFavorite(sourceId, channelId, !wasFavorite);
}
} catch (err) {
console.error('Error toggling favorite:', err);
// Revert on error