From fae191d97b2249eed35dd9e3da70f2d99e8722c5 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Mon, 30 May 2022 00:53:27 +0300 Subject: [PATCH] Updates to clear --search-mismatch output. --- src/Libs/Servers/JellyfinServer.php | 5 +++-- src/Libs/Servers/PlexServer.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Libs/Servers/JellyfinServer.php b/src/Libs/Servers/JellyfinServer.php index 50acc70e..7bc0e507 100644 --- a/src/Libs/Servers/JellyfinServer.php +++ b/src/Libs/Servers/JellyfinServer.php @@ -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; diff --git a/src/Libs/Servers/PlexServer.php b/src/Libs/Servers/PlexServer.php index 57674d90..0e0072a0 100644 --- a/src/Libs/Servers/PlexServer.php +++ b/src/Libs/Servers/PlexServer.php @@ -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;