Add Anime.me
This commit is contained in:
parent
86a94deff3
commit
66869704be
1 changed files with 7 additions and 2 deletions
|
@ -48,7 +48,12 @@ class Anime1 : AnimeHttpSource() {
|
||||||
private val cookieManager
|
private val cookieManager
|
||||||
get() = CookieManager.getInstance()
|
get() = CookieManager.getInstance()
|
||||||
|
|
||||||
override fun animeDetailsParse(response: Response) = SAnime.create()
|
override fun animeDetailsParse(response: Response) = throw UnsupportedOperationException()
|
||||||
|
override suspend fun getAnimeDetails(anime: SAnime): SAnime {
|
||||||
|
return SAnime.create().apply {
|
||||||
|
thumbnail_url = FIX_COVER
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun episodeListParse(response: Response): List<SEpisode> {
|
override fun episodeListParse(response: Response): List<SEpisode> {
|
||||||
var document: Document? = response.asJsoup()
|
var document: Document? = response.asJsoup()
|
||||||
|
@ -106,7 +111,7 @@ class Anime1 : AnimeHttpSource() {
|
||||||
val id = array.getContent(0)!!
|
val id = array.getContent(0)!!
|
||||||
url = "?cat=$id"
|
url = "?cat=$id"
|
||||||
title = array.getContent(1)!!
|
title = array.getContent(1)!!
|
||||||
if (id == "0" || title.contains("</a>")){
|
if (id == "0" || title.contains("</a>")) {
|
||||||
val doc = Jsoup.parse(title)
|
val doc = Jsoup.parse(title)
|
||||||
doc.selectFirst("a")?.let { link ->
|
doc.selectFirst("a")?.let { link ->
|
||||||
url = link.attr("href")
|
url = link.attr("href")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue