Skip to content

Commit 4870ead

Browse files
committed
Fix.
1 parent e4ad67d commit 4870ead

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Listeners/ProcessProgressEvent.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ public function __invoke(DataEvent $e): DataEvent
6060
return $e;
6161
}
6262

63-
// -- prevent endless loop.
64-
if ($item->hasPlayProgress() && ($item->getPlayProgress() + 30) > $entity->getPlayProgress()) {
63+
if ($item->hasPlayProgress() && $item->getPlayProgress() > $entity->getPlayProgress()) {
64+
$writer(
65+
Level::Info, "Local item '{id}: {title}' has higher/equal progress to the event item. not processing.",
66+
[
67+
'id' => $item->id,
68+
'title' => $item->title
69+
]
70+
);
6571
return $e;
6672
}
6773

0 commit comments

Comments
 (0)