Added com.plexapp.agents.thetvdb identifier for plex tv show parents. to support more RUIDs.

This commit is contained in:
Abdulmhsen B. A. A
2022-05-11 19:35:26 +03:00
parent 460770d833
commit 7ff46c9b19
2 changed files with 17 additions and 0 deletions

View File

@@ -117,6 +117,16 @@ final class MemoryMapper implements ImportInterface
return $this;
}
if ($this->inDeepDebugMode()) {
$this->logger->debug(
sprintf('%s: \'%s\'. is identical.', $entity->via, $entity->getName()),
[
'backend' => $entity->getAll(),
'remote' => $entity->getAll(),
]
);
}
Data::increment($bucket, $entity->type . '_ignored_no_change');
return $this;

View File

@@ -58,6 +58,7 @@ class PlexServer implements ServerInterface
protected const PARENT_SUPPORTED_LEGACY_AGENTS = [
'com.plexapp.agents.xbmcnfotv',
'com.plexapp.agents.thetvdb',
];
protected const WEBHOOK_ALLOWED_TYPES = [
@@ -1599,6 +1600,11 @@ class PlexServer implements ServerInterface
}
if (true === str_starts_with($val, 'com.plexapp.agents.')) {
// -- Relative UIDs are only supported on episodes parents.
if (false === $isParent && substr_count($val, '/') >= 3) {
continue;
}
$val = $this->parseLegacyAgent($val, $isParent);
}
@@ -1764,6 +1770,7 @@ class PlexServer implements ServerInterface
if (true === $isParent) {
$replacer += [
'com.plexapp.agents.thetvdb://' => 'com.plexapp.agents.tvdb://',
'com.plexapp.agents.xbmcnfotv://' => 'com.plexapp.agents.tvdb://',
];
}