Further filter titles, showing only the canonical title if it is really long

This commit is contained in:
Timothy Warren 2017-04-26 10:09:14 -04:00
parent 428a77b93d
commit 3fd7c84774

View File

@ -223,7 +223,7 @@ class Kitsu {
$diff = levenshtein($existing, $title);
$onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));
if ($diff <= 3 OR $isSubset OR $onlydifferentCase OR mb_strlen($title) > 55)
if ($diff <= 3 OR $isSubset OR $onlydifferentCase OR mb_strlen($title) > 55 OR mb_strlen($existing) > 60)
{
return FALSE;
}