xCine small fix (#692)

* Add files via upload

* small fix

* Delete animetoast.zip

* small fix
This commit is contained in:
LuftVerbot
2022-07-24 22:57:04 +02:00
committed by GitHub
parent 181d58e1b9
commit a5a5814746
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'xCine'
pkgNameSuffix = 'de.xcine'
extClass = '.xCine'
extVersionCode = 1
extVersionCode = 2
libVersion = '12'
}

View File

@ -73,7 +73,7 @@ class xCine : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val episodeList = mutableListOf<SEpisode>()
if (document.select("#breadcrumbDiv a[title=\"Serien stream\"]").attr("href").contains("/serien1")) {
val seriesLink = document.select("link[rel=canonical]").attr("abs:href")
val seasonHtml = client.newCall(GET("$seriesLink/folge-1", headers = Headers.headersOf("Referer", document.location(), headersBuilder().build().toString())))
val seasonHtml = client.newCall(GET("$seriesLink/folge-1", headers = Headers.headersOf("Referer", document.location())))
.execute().asJsoup()
val episodeElement = seasonHtml.select("ul.list-inline.list-film li")
episodeElement.forEach {
@ -160,7 +160,8 @@ class xCine : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request {
return POST(
"$baseUrl/search?page=$page&key=$query", body = "load=full-page".toRequestBody("application/x-www-form-urlencoded; charset=UTF-8".toMediaType()),
headers = headersBuilder().build())
headers = headersBuilder().build()
)
}
// Details