Skip to content

Commit

Permalink
fix(de/kiste): Fix episode list (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudemirovsky authored Nov 2, 2023
1 parent 3be959d commit 861ddd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/de/kiste/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ext {
extName = 'Kiste'
pkgNameSuffix = 'de.kiste'
extClass = '.Kiste'
extVersionCode = 3
extVersionCode = 4
libVersion = '13'
containsNsfw = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import rx.Observable
import uy.kohesive.injekt.injectLazy
import java.net.URLEncoder
import javax.crypto.Cipher
import javax.crypto.spec.SecretKeySpec

Expand Down Expand Up @@ -114,7 +115,7 @@ class Kiste : ParsedAnimeHttpSource() {

override fun fetchEpisodeList(anime: SAnime): Observable<List<SEpisode>> {
val slug = anime.url.substringAfterLast("/")
val vrf = encryptRC4(slug)
val vrf = URLEncoder.encode(encryptRC4(slug).trimEnd(), "utf-8")
val newDoc = client.newCall(GET("$baseUrl/ajax/film/servers.php?id=$slug&vrf=$vrf&episode=1-1&token="))
.execute()
.use { json.decodeFromString<HtmlData>(it.body.string()).html }
Expand Down

0 comments on commit 861ddd3

Please sign in to comment.