浏览代码

Exclude novels from MAL. Fix #19

inorichi 9 年之前
父节点
当前提交
1c465a6e59
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/eu/kanade/mangafeed/data/mangasync/services/MyAnimeList.java

+ 1 - 0
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();