Bypass state check if force-full flag is set.
This commit is contained in:
@@ -505,7 +505,7 @@ final class DirectMapper implements iImport
|
||||
* 2- if the db.metadata.backend.played_at is equal to entity.updated or the db.metadata has no data.
|
||||
* 3 - mark entity as tainted and re-process it.
|
||||
*/
|
||||
if (true === $cloned->isWatched() && false === $entity->isWatched()) {
|
||||
if (true === $hasAfter && true === $cloned->isWatched() && false === $entity->isWatched()) {
|
||||
$message = 'MAPPER: Watch state conflict detected in [{backend}: {title}] [{new_state}] vs db [{id}: {current_state}].';
|
||||
$hasMeta = count($cloned->getMetadata($entity->via)) >= 1;
|
||||
$hasDate = $entity->updated === ag($cloned->getMetadata($entity->via), iState::COLUMN_META_DATA_PLAYED_AT);
|
||||
|
||||
@@ -396,7 +396,7 @@ final class MemoryMapper implements iImport
|
||||
* 2- if the db.metadata.backend.played_at is equal to entity.updated or the db.metadata has no data.
|
||||
* 3 - mark entity as tainted and re-process it.
|
||||
*/
|
||||
if (true === $cloned->isWatched() && false === $entity->isWatched()) {
|
||||
if (true === $hasAfter && true === $cloned->isWatched() && false === $entity->isWatched()) {
|
||||
$message = 'MAPPER: Watch state conflict detected in [{backend}: {title}] [{new_state}] vs db [{id}: {current_state}].';
|
||||
$hasMeta = count($cloned->getMetadata($entity->via)) >= 1;
|
||||
$hasDate = $entity->updated === ag($cloned->getMetadata($entity->via), iState::COLUMN_META_DATA_PLAYED_AT);
|
||||
|
||||
Reference in New Issue
Block a user