1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00
This commit is contained in:
Reinhard Pointner 2016-04-23 00:05:50 +08:00
parent 042c380410
commit df79418064

View File

@ -54,6 +54,10 @@ public class Artwork implements Serializable {
}
public boolean matches(Object... tags) {
if (tags == null || tags.length == 0) {
return true;
}
return stream(tags).filter(Objects::nonNull).map(Object::toString).allMatch(tag -> {
return stream(this.tags).anyMatch(tag::equalsIgnoreCase) || tag.equalsIgnoreCase(language);
});