mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
Enhancement: Only fetch playlists and channel profiles after successful m3u refresh not every m3u_refresh status update. This should reduce network traffice and efficiency.
This may fix #327
This commit is contained in:
parent
da245c409a
commit
8794156767
1 changed files with 2 additions and 2 deletions
|
|
@ -276,11 +276,11 @@ export const WebsocketProvider = ({ children }) => {
|
|||
'M3U refresh completed successfully:',
|
||||
updateData
|
||||
);
|
||||
fetchPlaylists(); // Refresh playlists to ensure UI is up-to-date
|
||||
fetchChannelProfiles(); // Ensure channel profiles are updated
|
||||
}
|
||||
|
||||
updatePlaylist(updateData);
|
||||
fetchPlaylists(); // Refresh playlists to ensure UI is up-to-date
|
||||
fetchChannelProfiles(); // Ensure channel profiles are updated
|
||||
} else {
|
||||
// Playlist not in store yet - this happens when backend sends websocket
|
||||
// updates immediately after creating the playlist, before the API response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue