akwam, akwams: fix video urls (#352)
* Update build.gradle * akwam: fix video urls * add missing "/"
This commit is contained in:
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'أكوام'
|
||||
pkgNameSuffix = 'ar.akwam'
|
||||
extClass = '.Akwam'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class Akwam : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
val iframe = document.select("a.link-show").attr("href").replace("http://re.two.re", "https://akwam.us") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val iframe = "https://akwam.us/watch" + document.select("a.link-show").attr("href").substringAfter("watch") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val referer = response.request.url.toString()
|
||||
val refererHeaders = Headers.headersOf("referer", referer)
|
||||
val iframeResponse = client.newCall(GET(iframe, refererHeaders))
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'اكوام مسلسلات'
|
||||
pkgNameSuffix = 'ar.akwams'
|
||||
extClass = '.AkwamS'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ class AkwamS : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
val iframe = document.select("a.link-show").attr("href").replace("http://re.two.re", "https://akwam.us") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val iframe = "https://akwam.us/watch" + document.select("a.link-show").attr("href").substringAfter("watch") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val referer = response.request.url.toString()
|
||||
val refererHeaders = Headers.headersOf("referer", referer)
|
||||
val iframeResponse = client.newCall(GET(iframe, refererHeaders))
|
||||
|
Reference in New Issue
Block a user