1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 08:25:03 -05:00

* ignore non-series anidb entry types

This commit is contained in:
Reinhard Pointner 2014-06-13 16:42:14 +00:00
parent b87f8fd1e4
commit 12d04c1681

View File

@ -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<Episode>(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);