From d9620bec05dd537111ba6c31cc5d7657bf7b399d Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Thu, 27 May 2021 22:30:29 +0430 Subject: [PATCH] fix getManga returning false for inLibrary --- server/src/main/kotlin/suwayomi/anime/impl/Anime.kt | 2 +- server/src/main/kotlin/suwayomi/tachidesk/impl/Manga.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/kotlin/suwayomi/anime/impl/Anime.kt b/server/src/main/kotlin/suwayomi/anime/impl/Anime.kt index 68367fb..13db967 100644 --- a/server/src/main/kotlin/suwayomi/anime/impl/Anime.kt +++ b/server/src/main/kotlin/suwayomi/anime/impl/Anime.kt @@ -102,7 +102,7 @@ object Anime { fetchedAnime.description, fetchedAnime.genre, AnimeStatus.valueOf(fetchedAnime.status).name, - false, + animeEntry[AnimeTable.inLibrary], getAnimeSource(animeEntry[AnimeTable.sourceReference]), true ) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/impl/Manga.kt b/server/src/main/kotlin/suwayomi/tachidesk/impl/Manga.kt index 84b2e40..490d386 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/impl/Manga.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/impl/Manga.kt @@ -102,7 +102,7 @@ object Manga { fetchedManga.description, fetchedManga.genre, MangaStatus.valueOf(fetchedManga.status).name, - false, + mangaEntry[MangaTable.inLibrary], getSource(mangaEntry[MangaTable.sourceReference]), true )