Fix failing test
This commit is contained in:
parent
b806519b22
commit
dc20d8de7c
@ -206,7 +206,7 @@ final class Kitsu {
|
||||
$raw = array_unique([
|
||||
$data['canonicalTitle'],
|
||||
...array_values($data['titles']),
|
||||
...array_values($data['abbreviatedTitles']),
|
||||
...array_values($data['abbreviatedTitles'] ?? []),
|
||||
]);
|
||||
|
||||
return array_diff($raw,[$data['canonicalTitle']]);
|
||||
@ -234,17 +234,6 @@ final class Kitsu {
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists('abbreviatedTitles', $data))
|
||||
{
|
||||
foreach ($data['abbreviatedTitles'] as $alternateTitle)
|
||||
{
|
||||
if (self::titleIsUnique($alternateTitle, $valid))
|
||||
{
|
||||
$valid[] = $alternateTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $valid;
|
||||
}
|
||||
|
||||
|
@ -29,5 +29,8 @@ titles:
|
||||
- 'Attack on Titan'
|
||||
- 'Shingeki no Kyojin'
|
||||
- 進撃の巨人
|
||||
titles_more:
|
||||
2: 'Shingeki no Kyojin'
|
||||
3: 進撃の巨人
|
||||
trailer_id: n4Nj6Y_SNYI
|
||||
url: 'https://kitsu.io/anime/attack-on-titan'
|
||||
|
Loading…
Reference in New Issue
Block a user