mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(portals): restore fresh-import pins atomically (#1311)
* fix(portals): restore fresh-import pins atomically * fix(portals): preserve Xtream restore retry state * fix(portals): serialize Xtream restore revisions
This commit is contained in:
1 parent
78df3e7dbb
commit
32ba209b63
27 files changed
+1675
-192
No files matched your search
@@ -158,10 +158,16 @@ export class PlaylistRefreshActionService {
|
||||
]
|
||||
);
|
||||
|
||||
this.pendingRestoreService.set(item._id, {
|
||||
...restoreState,
|
||||
playbackPositions,
|
||||
});
|
||||
if (
|
||||
!this.pendingRestoreService.set(item._id, {
|
||||
...restoreState,
|
||||
playbackPositions,
|
||||
})
|
||||
) {
|
||||
throw new Error(
|
||||
`Parking pending restore state for "${item._id}" failed.`
|
||||
);
|
||||
}
|
||||
|
||||
measureRendererPerformancePhase(
|
||||
RENDERER_PERFORMANCE_PHASE.XTREAM_REFRESH_META,
|
||||
|
||||
@@ -402,10 +402,16 @@ export class RecentPlaylistsComponent {
|
||||
]
|
||||
);
|
||||
|
||||
this.pendingRestoreService.set(item._id, {
|
||||
...restoreState,
|
||||
playbackPositions,
|
||||
});
|
||||
if (
|
||||
!this.pendingRestoreService.set(item._id, {
|
||||
...restoreState,
|
||||
playbackPositions,
|
||||
})
|
||||
) {
|
||||
throw new Error(
|
||||
`Parking pending restore state for "${item._id}" failed.`
|
||||
);
|
||||
}
|
||||
|
||||
// Update the timestamp in NgRx / IndexedDB
|
||||
measureRendererPerformancePhase(
|
||||
|
||||
Reference in new issue
Block a user