Updates to clear --search-mismatch output.

This commit is contained in:
Abdulmhsen B. A. A
2022-05-30 00:53:27 +03:00
parent 5e52fe861f
commit fae191d97b
2 changed files with 6 additions and 4 deletions

View File

@@ -669,8 +669,9 @@ class JellyfinServer implements ServerInterface
'type' => ucfirst($type),
'url' => [(string)$url],
'title' => ag($item, $possibleTitlesList, '??'),
'year' => ag($item, 'ProductionYear', 0000),
'guids' => $guids,
'paths' => $locations,
'path' => $locations,
'matching' => $matches,
'comments' => (empty($paths)) ? 'No path found.' : 'Title does not match path.',
];
@@ -680,7 +681,7 @@ class JellyfinServer implements ServerInterface
}
if (count($locations) <= 1) {
$metadata['paths'] = $locations[0];
$metadata['path'] = $locations[0];
}
$list[] = $metadata;

View File

@@ -695,8 +695,9 @@ class PlexServer implements ServerInterface
'type' => ucfirst($type),
'url' => [(string)$url],
'title' => ag($item, $possibleTitlesList, '??'),
'year' => ag($item, 'year', 0000),
'guids' => $guids,
'paths' => $locations,
'path' => $locations,
'matching' => $matches,
'comments' => (empty($paths)) ? 'No path found.' : 'Title does not match path.',
];
@@ -706,7 +707,7 @@ class PlexServer implements ServerInterface
}
if (count($locations) <= 1) {
$metadata['paths'] = $locations[0];
$metadata['path'] = $locations[0];
}
$list[] = $metadata;