Fetch channels after m3u refresh.

This commit is contained in:
SergeantPanda 2025-07-13 18:51:04 -05:00
parent 18d4c39291
commit df23d3660b

View file

@ -15,6 +15,7 @@ export default function M3URefreshNotification() {
const refreshProgress = usePlaylistsStore((s) => s.refreshProgress);
const fetchStreams = useStreamsStore((s) => s.fetchStreams);
const fetchChannelGroups = useChannelsStore((s) => s.fetchChannelGroups);
const fetchChannels = useChannelsStore((s) => s.fetchChannels);
const fetchPlaylists = usePlaylistsStore((s) => s.fetchPlaylists);
const fetchEPGData = useEPGsStore((s) => s.fetchEPGData);
@ -135,6 +136,7 @@ export default function M3URefreshNotification() {
// Only trigger additional fetches on successful completion
if (data.action == 'parsing') {
fetchStreams();
fetchChannels();
} else if (data.action == 'processing_groups') {
fetchStreams();
fetchChannelGroups();