Fixed incorrect total objects for each library report in logs.

This commit is contained in:
Abdulmhsen B. A. A
2022-04-13 00:19:49 +03:00
parent 7281758ba2
commit 7e1c813e9c
2 changed files with 4 additions and 2 deletions

View File

@@ -535,7 +535,7 @@ class JellyfinServer implements ServerInterface
'Finished Parsing %s - %s (%d objects) response.',
$this->name,
$cName,
Data::get("{$this->name}.{$type}_total")
Data::get("{$this->name}.{$cName}_total")
)
);
} catch (JsonException $e) {
@@ -924,6 +924,7 @@ class JellyfinServer implements ServerInterface
DateTimeInterface|null $after = null
): void {
try {
Data::increment($this->name, $library . '_total');
Data::increment($this->name, $type . '_total');
if (StateInterface::TYPE_MOVIE === $type) {

View File

@@ -555,7 +555,7 @@ class PlexServer implements ServerInterface
'Finished Parsing %s - %s (%d objects) response.',
$this->name,
$cName,
Data::get("{$this->name}.{$type}_total")
Data::get("{$this->name}.{$cName}_total")
)
);
} catch (JsonException $e) {
@@ -948,6 +948,7 @@ class PlexServer implements ServerInterface
DateTimeInterface|null $after = null
): void {
try {
Data::increment($this->name, $library . '_total');
Data::increment($this->name, $type . '_total');
if (StateInterface::TYPE_MOVIE === $type) {