diff --git a/src/Libs/Servers/JellyfinServer.php b/src/Libs/Servers/JellyfinServer.php index fe568bcc..e01bd056 100644 --- a/src/Libs/Servers/JellyfinServer.php +++ b/src/Libs/Servers/JellyfinServer.php @@ -618,7 +618,9 @@ class JellyfinServer implements ServerInterface 'pointer' => '/Items', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] ); @@ -894,7 +896,9 @@ class JellyfinServer implements ServerInterface 'pointer' => '/Items', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] ); @@ -1004,7 +1008,9 @@ class JellyfinServer implements ServerInterface 'pointer' => '/Items', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] ); diff --git a/src/Libs/Servers/PlexServer.php b/src/Libs/Servers/PlexServer.php index 05e20bfa..af9eec24 100644 --- a/src/Libs/Servers/PlexServer.php +++ b/src/Libs/Servers/PlexServer.php @@ -630,7 +630,9 @@ class PlexServer implements ServerInterface 'pointer' => '/MediaContainer/Metadata', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] ); @@ -904,7 +906,9 @@ class PlexServer implements ServerInterface 'pointer' => '/MediaContainer/Metadata', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] ); @@ -1014,7 +1018,9 @@ class PlexServer implements ServerInterface 'pointer' => '/MediaContainer/Metadata', ], [ - new ErrorWrappingDecoder(new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE)) + 'decoder' => new ErrorWrappingDecoder( + new ExtJsonDecoder(options: JSON_INVALID_UTF8_IGNORE) + ) ] );