This commit is contained in:
Abdulmhsen B. A. A.
2024-08-18 22:05:03 +03:00
parent e4ad67d635
commit 4870eada75

View File

@@ -60,8 +60,14 @@ final readonly class ProcessProgressEvent
return $e;
}
// -- prevent endless loop.
if ($item->hasPlayProgress() && ($item->getPlayProgress() + 30) > $entity->getPlayProgress()) {
if ($item->hasPlayProgress() && $item->getPlayProgress() > $entity->getPlayProgress()) {
$writer(
Level::Info, "Local item '{id}: {title}' has higher/equal progress to the event item. not processing.",
[
'id' => $item->id,
'title' => $item->title
]
);
return $e;
}