mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
fix(portals): stop a rediscovery restoring the pin it started with
A same-movie rediscovery read the pin, then held that snapshot across its source lookup and applied it afterwards. A pin made while the lookup was out was therefore overwritten by the older value: the row and the primary Play action named a source the database no longer held. The snapshot is now applied as soon as it is read, so a later write simply wins on ordering rather than needing to be detected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce1b1f3269
commit
decde93f60
3 files changed
+57
-12
No files matched your search
@@ -151,6 +151,12 @@ matter, and each rules out the other's shortcut:
|
||||
for a different film — pin Dune (2021), open Dune (1984) before its year
|
||||
arrives, and it starts the 2021 source.
|
||||
|
||||
The pin a rediscovery reads is applied **immediately**, not after its source
|
||||
lookup returns: holding that snapshot across the await lets it overwrite a pin
|
||||
the user makes in the meantime, leaving the row and the primary Play naming a
|
||||
source the database no longer holds. Applying it first makes the later write
|
||||
simply win.
|
||||
|
||||
For the same reason a write or an unpin never *deletes* the yearless alias on
|
||||
spec: that row may hold another remake's preference. The single exception is
|
||||
the row this session actually read, because the user is acting on the pin they
|
||||
|
||||
Reference in new issue
Block a user