* 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:
parent
1913dfc13c
commit
abe201d271
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue