Add MangaLix#17621
Merged
Merged
Conversation
duasmisha-hub
marked this pull request as ready for review
July 15, 2026 07:17
duasmisha-hub
force-pushed
the
codex/add-mangalix
branch
from
July 15, 2026 07:22
3a0053a to
972f6ef
Compare
| get() = latestChapter?.releaseDate.toMangaTimestamp() | ||
|
|
||
| fun toSManga(baseUrl: String): SManga = SManga.create().apply { | ||
| url = "/manga/$slug" |
Contributor
There was a problem hiding this comment.
only save the slug (or id)
| import java.util.zip.GZIPInputStream | ||
|
|
||
| @Source | ||
| abstract class Mangalix : HttpSource() { |
Contributor
There was a problem hiding this comment.
please implement KeiSource instead, you also need to set libVersion in build.gradle.kts to 1.6
| headers.newBuilder() | ||
| .set("Accept", "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8") | ||
| .build() | ||
| } |
Contributor
There was a problem hiding this comment.
no need for lazy, make them property getters
|
|
||
| @Volatile | ||
| private var chapterCache: ChapterCache? = null | ||
|
|
Contributor
There was a problem hiding this comment.
can we avoid caching in memory?
Contributor
Author
|
done. |
| readChapters(slug).distinctBy { it.id to it.number }.map { chapter -> | ||
| SChapter.create().apply { | ||
| val number = chapter.number.toString().removeSuffix(".0") | ||
| url = "$slug/$number/${chapter.id}" |
Contributor
There was a problem hiding this comment.
save rest of data in memo, only save a unique identifier in url (e.g chapter.id)
AwkwardPeak7
approved these changes
Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #16275
Adds the English MangaLix source with popular and latest catalogs, search and filters, manga details, chapters, and reader pages.
Validation performed:
:src:en:mangalix:spotlessCheck:src:en:mangalix:assembleDebug:src:en:mangalix:assembleReleaseChecklist:
versionCodevalue inbuild.gradle.ktsbaseVersionCodeinbuild.gradle.kts(if updated multisrc theme code)contentWarningconfiguration inbuild.gradle.ktsappropriatelyidif a source's name or language were changedweb_hi_res_512.pngwhen adding a new extension