Fix Remanga sort, new manga source Anibel, UI changes #30
@@ -15,6 +15,8 @@ import androidx.core.content.ContextCompat
|
||||
import androidx.core.graphics.Insets
|
||||
import androidx.core.view.*
|
||||
import androidx.viewbinding.ViewBinding
|
||||
import com.google.android.material.appbar.AppBarLayout
|
||||
import com.google.android.material.appbar.AppBarLayout.LayoutParams.*
|
||||
import org.koin.android.ext.android.get
|
||||
import org.koitharu.kotatsu.BuildConfig
|
||||
import org.koitharu.kotatsu.R
|
||||
@@ -57,7 +59,13 @@ abstract class BaseActivity<B : ViewBinding> : AppCompatActivity(), OnApplyWindo
|
||||
this.binding = binding
|
||||
super.setContentView(binding.root)
|
||||
(binding.root.findViewById<View>(R.id.toolbar) as? Toolbar)?.let(this::setSupportActionBar)
|
||||
val params = (binding.root.findViewById<View>(R.id.toolbar) as? Toolbar)?.layoutParams as AppBarLayout.LayoutParams
|
||||
ViewCompat.setOnApplyWindowInsetsListener(binding.root, this)
|
||||
if (get<AppSettings>().isToolbarHideWhenScrolling) {
|
||||
params.scrollFlags = SCROLL_FLAG_SCROLL or SCROLL_FLAG_ENTER_ALWAYS
|
||||
} else {
|
||||
params.scrollFlags = SCROLL_FLAG_NO_SCROLL
|
||||
}
|
||||
}
|
||||
|
||||
override fun onApplyWindowInsets(v: View, insets: WindowInsetsCompat): WindowInsetsCompat {
|
||||
|
||||
@@ -30,7 +30,8 @@ enum class MangaSource(
|
||||
// NUDEMOON("Nude-Moon", "ru", NudeMoonRepository::class.java),
|
||||
MANGAREAD("MangaRead", "en", MangareadRepository::class.java),
|
||||
REMANGA("Remanga", "ru", RemangaRepository::class.java),
|
||||
HENTAILIB("HentaiLib", "ru", HentaiLibRepository::class.java);
|
||||
HENTAILIB("HentaiLib", "ru", HentaiLibRepository::class.java),
|
||||
ANIBEL("Anibel", "be", AnibelRepository::class.java);
|
||||
|
||||
@get:Throws(NoBeanDefFoundException::class)
|
||||
@Deprecated("")
|
||||
|
||||
@@ -24,4 +24,5 @@ val parserModule
|
||||
factory<MangaRepository>(named(MangaSource.MANGAREAD)) { MangareadRepository(get()) }
|
||||
factory<MangaRepository>(named(MangaSource.REMANGA)) { RemangaRepository(get()) }
|
||||
factory<MangaRepository>(named(MangaSource.HENTAILIB)) { HentaiLibRepository(get()) }
|
||||
factory<MangaRepository>(named(MangaSource.ANIBEL)) { AnibelRepository(get()) }
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
|
|
||||
package org.koitharu.kotatsu.core.parser.site
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import org.koitharu.kotatsu.base.domain.MangaLoaderContext
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import org.koitharu.kotatsu.core.exceptions.ParseException
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import org.koitharu.kotatsu.core.model.*
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import org.koitharu.kotatsu.core.parser.RemoteMangaRepository
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import org.koitharu.kotatsu.utils.ext.*
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
import java.util.*
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
class AnibelRepository(loaderContext: MangaLoaderContext) : RemoteMangaRepository(loaderContext) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override val source = MangaSource.ANIBEL
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override val defaultDomain = "anibel.net"
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override val sortOrders: Set<SortOrder> = EnumSet.of(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
SortOrder.NEWEST
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override suspend fun getList(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
offset: Int,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
query: String?,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
sortOrder: SortOrder?,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
tag: MangaTag?
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
): List<Manga> {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
if (!query.isNullOrEmpty()) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return if (offset == 0) search(query) else emptyList()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val page = (offset / 12f).toIntUp().inc()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val link = when {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
tag != null -> "/manga?genre[]=${tag.key}&page=$page".withDomain()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
else -> "/manga?page=$page".withDomain()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val doc = loaderContext.httpGet(link).parseHtml()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val root = doc.body().select("div.manga-block") ?: throw ParseException("Cannot find root")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val items = root.select("div.anime-card")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return items.mapNotNull { card ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val href = card.selectFirst("a").attr("href")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val status = card.select("tr")[2].text()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
Manga(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
id = generateUid(href),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
title = card.selectFirst("h1.anime-card-title").text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
coverUrl = card.selectFirst("img").attr("data-src").withDomain(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
altTitle = null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
author = null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
rating = Manga.NO_RATING,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
url = href,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
publicUrl = href.withDomain(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
tags = card.select("p.tupe.tag")?.select("a")?.mapNotNullToSet tags@{ x ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
MangaTag(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
title = x.text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
key = x.attr("href") ?: return@tags null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}.orEmpty(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
state = when (status) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
"выпускаецца" -> MangaState.ONGOING
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
"завершанае" -> MangaState.FINISHED
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
else -> null
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
},
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override suspend fun getDetails(manga: Manga): Manga {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val doc = loaderContext.httpGet(manga.publicUrl).parseHtml()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val root = doc.body().select("div.container") ?: throw ParseException("Cannot find root")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return manga.copy(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
description = root.select("div.manga-block.grid-12")[2].select("p").text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
chapters = root.select("ul.series").flatMap { table ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
table.select("li")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}.map { it.selectFirst("a") }.mapIndexedNotNull { i, a ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
MangaChapter(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
id = generateUid(href),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
name = a.select("a").first().text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
number = i + 1,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
url = href,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val fullUrl = chapter.url.withDomain()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val doc = loaderContext.httpGet(fullUrl).parseHtml()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val scripts = doc.select("script")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
for (script in scripts) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val data = script.html()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val pos = data.indexOf("dataSource")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
if (pos == -1) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
continue
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val json = data.substring(pos).substringAfter('[').substringBefore(']')
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val domain = getDomain()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return json.split(",").mapNotNull {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
it.trim()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
.removeSurrounding('"', '\'')
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
.toRelativeUrl(domain)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
.takeUnless(String::isBlank)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}.map { url ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
MangaPage(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
id = generateUid(url),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
url = url,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
referer = fullUrl,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
throw ParseException("Pages list not found at ${chapter.url.withDomain()}")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
override suspend fun getTags(): Set<MangaTag> {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val doc = loaderContext.httpGet("https://${getDomain()}/manga").parseHtml()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val root = doc.body().select("div#tabs-genres").select("ul#list.ul-three-colums")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return root.select("p.menu-tags.tupe").mapToSet { a ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
MangaTag(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
title = a.select("a").text().capitalize(Locale.ROOT),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
key = a.select("a").attr("data-name"),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
private suspend fun search(query: String): List<Manga> {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val domain = getDomain()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val doc = loaderContext.httpGet("https://$domain/search?q=$query").parseHtml()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val root = doc.body().select("div.manga-block").select("article.tab-2") ?: throw ParseException("Cannot find root")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val items = root.select("div.anime-card")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
return items.mapNotNull { card ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val href = card.select("a").attr("href")
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
val status = card.select("tr")[2].text()
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
Manga(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
id = generateUid(href),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
title = card.selectFirst("h1.anime-card-title").text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
coverUrl = card.selectFirst("img").attr("src").withDomain(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
altTitle = null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
author = null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
rating = Manga.NO_RATING,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
url = href,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
publicUrl = href.withDomain(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
tags = card.select("p.tupe.tag")?.select("a")?.mapNotNullToSet tags@{ x ->
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
MangaTag(
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
title = x.text(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
key = x.attr("href") ?: return@tags null,
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}.orEmpty(),
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
state = when (status) {
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
"выпускаецца" -> MangaState.ONGOING
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
"завершанае" -> MangaState.FINISHED
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
else -> null
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
},
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
source = source
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
)
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
}
|
||||
|
`offset` or `page`?
` ```suggestion
val href = card.selectFirst("a").attr("href")
```
`
Url should be relative, without host. Host will adds every time in Url should be relative, without host. Host will adds every time in `getDetails`
`largeCoverUrl` may be null, then `coverUrl` will be used
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites. Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
```suggestion
val href = a.select("a").first().attr("href").toRelativeUrl(getDomain())
```
```suggestion
url = href,
```
```suggestion
publicUrl = url + href,
```
```suggestion
publicUrl = url + href,
```
|
||||
@@ -18,10 +18,9 @@ class RemangaRepository(loaderContext: MangaLoaderContext) : RemoteMangaReposito
|
||||
override val defaultDomain = "remanga.org"
|
||||
|
||||
override val sortOrders: Set<SortOrder> = EnumSet.of(
|
||||
SortOrder.UPDATED,
|
||||
SortOrder.POPULARITY,
|
||||
SortOrder.RATING,
|
||||
SortOrder.ALPHABETICAL,
|
||||
SortOrder.UPDATED,
|
||||
SortOrder.NEWEST
|
||||
)
|
||||
|
||||
@@ -162,7 +161,7 @@ class RemangaRepository(loaderContext: MangaLoaderContext) : RemoteMangaReposito
|
||||
SortOrder.POPULARITY -> "-rating"
|
||||
SortOrder.RATING -> "-votes"
|
||||
SortOrder.NEWEST -> "-id"
|
||||
else -> "-rating"
|
||||
else -> "-chapter_date"
|
||||
}
|
||||
|
||||
private fun parsePage(jo: JSONObject, referer: String) = MangaPage(
|
||||
|
||||
@@ -41,6 +41,8 @@ class AppSettings private constructor(private val prefs: SharedPreferences) :
|
||||
|
||||
val isAmoledTheme by BoolPreferenceDelegate(KEY_THEME_AMOLED, defaultValue = false)
|
||||
|
||||
val isToolbarHideWhenScrolling by BoolPreferenceDelegate(KEY_HIDE_TOOLBAR, defaultValue = true)
|
||||
|
||||
var gridSize by IntPreferenceDelegate(KEY_GRID_SIZE, defaultValue = 100)
|
||||
|
||||
val readerPageSwitch by StringSetPreferenceDelegate(
|
||||
@@ -147,6 +149,7 @@ class AppSettings private constructor(private val prefs: SharedPreferences) :
|
||||
const val KEY_APP_SECTION = "app_section"
|
||||
const val KEY_THEME = "theme"
|
||||
const val KEY_THEME_AMOLED = "amoled_theme"
|
||||
const val KEY_HIDE_TOOLBAR = "hide_toolbar"
|
||||
const val KEY_SOURCES_ORDER = "sources_order"
|
||||
const val KEY_SOURCES_HIDDEN = "sources_hidden"
|
||||
const val KEY_TRAFFIC_WARNING = "traffic_warning"
|
||||
|
||||
@@ -73,6 +73,9 @@ class MainSettingsFragment : BasePreferenceFragment(R.string.settings),
|
||||
AppSettings.KEY_THEME_AMOLED -> {
|
||||
findPreference<Preference>(key)?.setSummary(R.string.restart_required)
|
||||
}
|
||||
AppSettings.KEY_HIDE_TOOLBAR -> {
|
||||
findPreference<SwitchPreference>(key)?.setSummary(R.string.restart_required)
|
||||
}
|
||||
AppSettings.KEY_LOCAL_STORAGE -> {
|
||||
findPreference<Preference>(key)?.run {
|
||||
summary = settings.getStorageDir(context)?.getStorageName(context)
|
||||
|
||||
5
app/src/main/res/color/stroke_color.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="?attr/colorPrimary" android:state_checked="true"/>
|
||||
<item android:alpha="0.12" android:color="?attr/colorOnSurface" android:state_checked="false"/>
|
||||
</selector>
|
||||
@@ -2,8 +2,12 @@
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
app:strokeWidth="1dp"
|
||||
app:strokeColor="@color/stroke_color"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/manga_list_details_item_height">
|
||||
android:layout_height="@dimen/manga_list_details_item_height"
|
||||
app:strokeWidth="1dp"
|
||||
app:strokeColor="@color/stroke_color"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -207,4 +207,5 @@
|
||||
<string name="protect_application_subtitle">Калі ласка, увядзіце пароль, які спатрэбіцца пры запуску прыкладання</string>
|
||||
<string name="confirm">Пацвярджаць</string>
|
||||
<string name="password_length_hint">Пароль павінен змяшчаць не менш за 4 сімвалаў</string>
|
||||
<string name="hide_toolbar">Схаваць загаловак пры прагортцы</string>
|
||||
</resources>
|
||||
@@ -205,4 +205,5 @@
|
||||
<string name="protect_application_subtitle">Введите пароль, который вам понадобится при запуске приложения</string>
|
||||
<string name="confirm">Confirm</string>
|
||||
<string name="password_length_hint">Пароль должен содержать не менее 4 символов</string>
|
||||
<string name="hide_toolbar">Прятать заголовок при прокрутке</string>
|
||||
</resources>
|
||||
@@ -207,4 +207,5 @@
|
||||
<string name="protect_application_subtitle">Enter password that will be required when the application starts</string>
|
||||
<string name="confirm">Confirm</string>
|
||||
<string name="password_length_hint">Password must be at least 4 characters</string>
|
||||
<string name="hide_toolbar">Hide toolbar when scrolling</string>
|
||||
</resources>
|
||||
@@ -20,6 +20,12 @@
|
||||
android:title="@string/black_dark_theme"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="hide_toolbar"
|
||||
android:title="@string/hide_toolbar"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<ListPreference
|
||||
android:entries="@array/list_modes"
|
||||
android:key="list_mode_2"
|
||||
|
||||
offsetorpage?offsetorpage?`
`
Url should be relative, without host. Host will adds every time in
getDetailsUrl should be relative, without host. Host will adds every time in
getDetailslargeCoverUrlmay be null, thencoverUrlwill be usedlargeCoverUrlmay be null, thencoverUrlwill be usedSame thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.
Same thing, url must be relative, because user can change domain in preferences and it should be applied to manga from history or favorites.