mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 10:06:15 -08:00
fix(portals): a reset finished under another playlist leaves its store alone
The store positions are only reloaded for the playlist the reset started on while that playlist is still current; a playlist switched meanwhile keeps its own positions. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3c422c9b5
commit
4e18306d06
1 file changed
+6
-1
@@ -198,7 +198,12 @@ export class VodDetailsMenuService {
|
||||
this.bindings()?.vodId() !== vodId ||
|
||||
this.xtreamStore.currentPlaylist()?.id !== playlistId
|
||||
) {
|
||||
void this.xtreamStore.loadAllPositions(playlistId);
|
||||
// Another movie of the same playlist still gets fresh store
|
||||
// badges; another playlist's store must not be replaced by the
|
||||
// old playlist's positions.
|
||||
if (this.xtreamStore.currentPlaylist()?.id === playlistId) {
|
||||
void this.xtreamStore.loadAllPositions(playlistId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// A read still in flight started from the pre-write row; letting it
|
||||
|
||||
Reference in new issue
Block a user