From 7a823835fbebcc7685e0cd93a16db1eb1979ad5a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 17 Apr 2016 17:47:39 +0000 Subject: [PATCH] Experiment with unifying Artwork interface for all databases --- source/net/filebot/web/Artwork.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/filebot/web/Artwork.java b/source/net/filebot/web/Artwork.java index 3068fbf0..da6c8a8a 100644 --- a/source/net/filebot/web/Artwork.java +++ b/source/net/filebot/web/Artwork.java @@ -53,6 +53,10 @@ public class Artwork implements Serializable { return rating; } + public boolean matches(String tag) { + return stream(category).anyMatch(tag::equals); + } + @Override public int hashCode() { return url.hashCode();