Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0 (#1786)

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0

* Format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-12-06 12:37:19 -05:00
committed by GitHub
parent 949829ae6b
commit 83c94c044d
37 changed files with 524 additions and 143 deletions

View File

@@ -72,8 +72,12 @@ internal class RateLimitInterceptor(
val request = chain.request()
when (host) {
null, request.url.host -> {} // need rate limit
else -> return chain.proceed(request)
// need rate limit
null, request.url.host -> {}
else -> {
return chain.proceed(request)
}
}
try {

View File

@@ -110,6 +110,7 @@ class LocalSource(
mangaDirs.sortedWith(compareByDescending(String.CASE_INSENSITIVE_ORDER) { it.name })
}
}
is OrderBy.Latest -> {
mangaDirs =
if (filter.state!!.ascending) {
@@ -246,6 +247,7 @@ class LocalSource(
}
}
}
is Format.Rar -> {
JunrarArchive(chapter).use { rar ->
rar.fileHeaders.firstOrNull { it.fileName == COMIC_INFO_FILE }?.let { comicInfoFile ->
@@ -255,6 +257,7 @@ class LocalSource(
}
}
}
else -> {}
}
}
@@ -337,6 +340,7 @@ class LocalSource(
)
}
}
is Format.Zip -> {
val loader = ZipPageLoader(format.file)
val pages = loader.getPages()
@@ -344,6 +348,7 @@ class LocalSource(
pages
}
is Format.Rar -> {
val loader = RarPageLoader(format.file)
val pages = loader.getPages()
@@ -351,6 +356,7 @@ class LocalSource(
pages
}
is Format.Epub -> {
val loader = EpubPageLoader(format.file)
val pages = loader.getPages()
@@ -390,6 +396,7 @@ class LocalSource(
entry?.let { coverManager.update(manga, it.inputStream()) }
}
is Format.Zip -> {
ZipFile.builder().setFile(format.file).get().use { zip ->
val entry =
@@ -401,6 +408,7 @@ class LocalSource(
entry?.let { coverManager.update(manga, zip.getInputStream(it)) }
}
}
is Format.Rar -> {
JunrarArchive(format.file).use { archive ->
val entry =
@@ -411,6 +419,7 @@ class LocalSource(
entry?.let { coverManager.update(manga, archive.getInputStream(it)) }
}
}
is Format.Epub -> {
EpubFile(format.file).use { epub ->
val entry =

View File

@@ -58,6 +58,7 @@ object ChapterRecognition {
numberMatch.none() -> {
return chapterNumber ?: -1.0
}
numberMatch.count() > 1 -> {
// Remove unwanted tags.
unwanted.replace(cleanChapterName, "").let { name ->