UHDMovies: fix post link (#1250)

This commit is contained in:
Samfun75
2023-02-07 04:51:25 +03:00
committed by GitHub
parent f8b7e8b6ba
commit 95666690b7
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'UHD Movies (Experimental)'
pkgNameSuffix = 'en.uhdmovies'
extClass = '.UHDMovies'
extVersionCode = 4
extVersionCode = 5
libVersion = '13'
}

View File

@ -238,7 +238,7 @@ class UHDMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
// ============================= Utilities ==============================
private fun extractVideo(epUrl: EpUrl): Pair<List<Video>, String> {
val postLink = epUrl.url.substringBefore("?id=")
val postLink = epUrl.url.substringBefore("?id=").substringAfter("/?")
val formData = FormBody.Builder().add("_wp_http", epUrl.url.substringAfter("?id=")).build()
val response = client.newCall(POST(postLink, body = formData)).execute().asJsoup()
val link = response.selectFirst("form#landing").attr("action")