Minor cleanup

This commit is contained in:
Jobobby04 2022-08-22 12:43:55 -04:00
parent 37b5b2f2e1
commit bda2f81c66
3 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ data class Manga(
get() = customMangaInfo?.genre ?: ogGenre get() = customMangaInfo?.genre ?: ogGenre
val status: Long val status: Long
get() = customMangaInfo?.statusLong ?: ogStatus get() = customMangaInfo?.status ?: ogStatus
// SY <-- // SY <--
val sorting: Long val sorting: Long

View File

@ -103,7 +103,6 @@ class CustomMangaManager(val context: Context) {
val genreString by lazy { val genreString by lazy {
genre?.joinToString() genre?.joinToString()
} }
val statusLong = status?.toLong()
fun toJson(): MangaJson { fun toJson(): MangaJson {
return MangaJson( return MangaJson(

View File

@ -61,11 +61,13 @@ class MergedSource : HttpSource() {
override fun chapterListParse(response: Response) = throw UnsupportedOperationException() override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun pageListParse(response: Response) = throw UnsupportedOperationException() override fun pageListParse(response: Response) = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
@Deprecated("Use the 1.x API instead", replaceWith = ReplaceWith("getChapterList")) @Deprecated("Use the 1.x API instead", replaceWith = ReplaceWith("getChapterList"))
override fun fetchChapterList(manga: SManga) = throw UnsupportedOperationException() override fun fetchChapterList(manga: SManga) = throw UnsupportedOperationException()
override suspend fun getChapterList(manga: SManga) = throw UnsupportedOperationException() override suspend fun getChapterList(manga: SManga) = throw UnsupportedOperationException()
override fun fetchImage(page: Page) = throw UnsupportedOperationException() override fun fetchImage(page: Page) = throw UnsupportedOperationException()
override fun fetchImageUrl(page: Page) = throw UnsupportedOperationException() override fun fetchImageUrl(page: Page) = throw UnsupportedOperationException()
@Deprecated("Use the 1.x API instead", replaceWith = ReplaceWith("getPageList")) @Deprecated("Use the 1.x API instead", replaceWith = ReplaceWith("getPageList"))
override fun fetchPageList(chapter: SChapter) = throw UnsupportedOperationException() override fun fetchPageList(chapter: SChapter) = throw UnsupportedOperationException()
override suspend fun getPageList(chapter: SChapter) = throw UnsupportedOperationException() override suspend fun getPageList(chapter: SChapter) = throw UnsupportedOperationException()