From ecf7232f0045e8b57b4efbe3b36b21bfb7eac5b3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 19 Apr 2016 10:44:55 +0000 Subject: [PATCH] Check language in Artwork.matches() as well --- source/net/filebot/web/Artwork.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/web/Artwork.java b/source/net/filebot/web/Artwork.java index d2fee912..202265cf 100644 --- a/source/net/filebot/web/Artwork.java +++ b/source/net/filebot/web/Artwork.java @@ -53,9 +53,9 @@ public class Artwork implements Serializable { return rating; } - public boolean matches(String... tags) { - return stream(tags).filter(Objects::nonNull).allMatch(tag -> { - return stream(tags).anyMatch(tag::equalsIgnoreCase) || tag.equalsIgnoreCase(language); + public boolean matches(Object... tags) { + return stream(tags).filter(Objects::nonNull).map(Object::toString).allMatch(tag -> { + return stream(this.tags).anyMatch(tag::equalsIgnoreCase) || tag.equalsIgnoreCase(language); }); }