From 1c465a6e59fea7fd14083933620b803d381558db Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 14 Jan 2016 20:50:14 +0100 Subject: [PATCH] Exclude novels from MAL. Fix #19 --- .../eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java b/app/src/main/java/eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java index abb6c4fbca..fc0b9e2d36 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java @@ -105,6 +105,7 @@ public class MyAnimeList extends MangaSyncService { return networkService.getStringResponse(getSearchUrl(query), headers, null) .map(Jsoup::parse) .flatMap(doc -> Observable.from(doc.select("entry"))) + .filter(entry -> !entry.select("type").text().equals("Novel")) .map(entry -> { MangaSync manga = MangaSync.create(this); manga.title = entry.select("title").first().text();