Merge pull request #85 from ArabCoders/dev

Fixed missing ignore list casting in different conditions.
This commit is contained in:
Abdulmohsen
2022-04-28 00:54:46 +03:00
committed by GitHub
3 changed files with 12 additions and 12 deletions

View File

@@ -615,7 +615,7 @@ class JellyfinServer implements ServerInterface
$ignoreIds = null;
if (null !== ($this->options['ignore'] ?? null)) {
$ignoreIds = array_map(fn($v) => trim($v), explode(',', $this->options['ignore']));
$ignoreIds = array_map(fn($v) => trim($v), explode(',', (string)$this->options['ignore']));
}
$list = [];

View File

@@ -453,7 +453,7 @@ class PlexServer implements ServerInterface
$ignoreIds = null;
if (null !== ($this->options['ignore'] ?? null)) {
$ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', $this->options['ignore']));
$ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', (string)$this->options['ignore']));
}
$promises = [];
@@ -650,7 +650,7 @@ class PlexServer implements ServerInterface
$ignoreIds = null;
if (null !== ($this->options['ignore'] ?? null)) {
$ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', $this->options['ignore']));
$ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', (string)$this->options['ignore']));
}
$list = [];

View File

@@ -10,15 +10,15 @@ return [
'updated' => 0,
'watched' => 1,
'meta' => [
"via" => "EMBY@Home",
"series" => "Series Title",
"year" => 2020,
"season" => 1,
"episode" => 2,
"title" => "Episode Title",
"date" => "2020-01-03",
"webhook" => [
"event" => "media.scrobble"
'via' => 'EMBY@Home',
'series' => 'Series Title',
'year' => 2020,
'season' => 1,
'episode' => 2,
'title' => 'Episode Title',
'date' => '2020-01-03',
'webhook' => [
'event' => 'media.scrobble'
],
],
'guid_plex' => StateInterface::TYPE_EPISODE . '/6000',