1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* properly deal with language codes for various Chinese-like SublanguageIDs and LanguageNames

@see https://www.filebot.net/forums/viewtopic.php?f=8&t=2337#p13444
This commit is contained in:
Reinhard Pointner 2015-01-15 18:06:55 +00:00
parent 1913dfc13c
commit abe201d271

View File

@ -62,7 +62,7 @@ public class Language implements Serializable {
}
public boolean matches(String code) {
return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code);
return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code) || code.toLowerCase().contains(name.toLowerCase());
}
@Override