Fix.
This commit is contained in:
@@ -60,8 +60,14 @@ final readonly class ProcessProgressEvent
|
|||||||
return $e;
|
return $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- prevent endless loop.
|
if ($item->hasPlayProgress() && $item->getPlayProgress() > $entity->getPlayProgress()) {
|
||||||
if ($item->hasPlayProgress() && ($item->getPlayProgress() + 30) > $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;
|
return $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user