From 12d04c1681a86407b0032c1e03cf8759ed0c8a91 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 13 Jun 2014 16:42:14 +0000 Subject: [PATCH] * ignore non-series anidb entry types --- source/net/filebot/web/AnidbClient.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/net/filebot/web/AnidbClient.java b/source/net/filebot/web/AnidbClient.java index 958c6d25..839346aa 100644 --- a/source/net/filebot/web/AnidbClient.java +++ b/source/net/filebot/web/AnidbClient.java @@ -104,6 +104,12 @@ public class AnidbClient extends AbstractEpisodeListProvider { // get anime page as xml Document dom = getDocument(url); + // AniDB types: Movie, Music Video, Other, OVA, TV Series, TV Special, Web, unknown + String animeType = selectString("//type", dom); + if (animeType != null && animeType.matches("(?i:music.video|unkown|other)")) { + return new ArrayList(0); + } + // select main title and anime start date SimpleDate seriesStartDate = SimpleDate.parse(selectString("//startdate", dom), "yyyy-MM-dd"); String animeTitle = selectString("//titles/title[@type='official' and @lang='" + language.getLanguage() + "']", dom);