diff --git a/src/Parser/Common/AnimeCardParser.php b/src/Parser/Common/AnimeCardParser.php index b8cfc2aa..4996da92 100644 --- a/src/Parser/Common/AnimeCardParser.php +++ b/src/Parser/Common/AnimeCardParser.php @@ -164,7 +164,13 @@ public function getType(): ?string $text = JString::cleanse($text->text()); preg_match('/^([a-zA-Z-\.]+)/', $text, $matches); - return $matches[1]; + $type = $matches[1]; + + if ($type === '-') { + $type = 'Unknown'; + } + + return $type; } /**