some fixes to arabic extensions (#554)
* Update build.gradle * some fixes to arabic extensions
This commit is contained in:
parent
569e96957b
commit
aa1f076a83
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'أكوام'
|
||||
pkgNameSuffix = 'ar.akwam'
|
||||
extClass = '.Akwam'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class Akwam : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override val name = "أكوام"
|
||||
|
||||
override val baseUrl = "https://akwam.us"
|
||||
override val baseUrl = "https://akwam.im"
|
||||
|
||||
override val lang = "ar"
|
||||
|
||||
@ -72,7 +72,7 @@ class Akwam : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
val iframe = "https://akwam.us/watch" + document.select("a.link-show").attr("href").substringAfter("watch") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val iframe = "https://akwam.im/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))
|
||||
@ -153,7 +153,8 @@ class Akwam : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
val anime = SAnime.create()
|
||||
// anime.thumbnail_url = document.select("div.container div div a picture > img.img-fluid").attr("data-src")
|
||||
anime.title = document.select("picture > img.img-fluid").attr("alt")
|
||||
anime.genre = document.select("div.font-size-16.d-flex.align-items-center.mt-3 a.badge").joinToString(", ") { it.text() }
|
||||
anime.genre = document.select("div.font-size-16.d-flex.align-items-center.mt-3 a.badge, span.badge-info, span:contains(جودة الفيلم), span:contains(انتاج)").joinToString(", ") { it.text().replace("جودة الفيلم : ", "") }
|
||||
anime.author = document.select("span:contains(انتاج)").text().replace("انتاج : ", "")
|
||||
anime.description = document.select("div.widget:contains(قصة )").text()
|
||||
anime.status = SAnime.COMPLETED
|
||||
return anime
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'اكوام مسلسلات'
|
||||
pkgNameSuffix = 'ar.akwams'
|
||||
extClass = '.AkwamS'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class AkwamS : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override val name = "أكوام مسلسلات"
|
||||
|
||||
override val baseUrl = "https://akwam.us"
|
||||
override val baseUrl = "https://akwam.im"
|
||||
|
||||
override val lang = "ar"
|
||||
|
||||
@ -81,7 +81,7 @@ class AkwamS : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
val iframe = "https://akwam.us/watch" + document.select("a.link-show").attr("href").substringAfter("watch") + "/" + document.ownerDocument().select("input#page_id").attr("value")
|
||||
val iframe = "https://akwam.im/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))
|
||||
@ -161,7 +161,8 @@ class AkwamS : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
val anime = SAnime.create()
|
||||
// anime.thumbnail_url = document.select("div.container div div a picture > img.img-fluid").attr("data-src")
|
||||
anime.title = document.select("picture > img.img-fluid").attr("alt")
|
||||
anime.genre = document.select("div.font-size-16.d-flex.align-items-center.mt-3 a.badge").joinToString(", ") { it.text() }
|
||||
anime.genre = document.select("div.font-size-16.d-flex.align-items-center.mt-3 a.badge, span.badge-info, span:contains(جودة الفيلم), span:contains(انتاج)").joinToString(", ") { it.text().replace("جودة الفيلم : ", "") }
|
||||
anime.author = document.select("span:contains(انتاج)").text().replace("انتاج : ", "")
|
||||
anime.description = document.select("div.widget:contains(قصة )").text()
|
||||
anime.status = SAnime.COMPLETED
|
||||
return anime
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'Animerco'
|
||||
pkgNameSuffix = 'ar.animerco'
|
||||
extClass = '.Animerco'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ class Animerco : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
override fun popularAnimeFromElement(element: Element): SAnime {
|
||||
val anime = SAnime.create()
|
||||
anime.setUrlWithoutDomain(element.select("div.data a").attr("href"))
|
||||
anime.thumbnail_url = "https:" + element.select("div.poster img").attr("data-lazy-src")
|
||||
anime.thumbnail_url = element.select("div.poster img").attr("data-lazy-src")
|
||||
anime.title = element.select("div.data a").text()
|
||||
return anime
|
||||
}
|
||||
@ -322,7 +322,7 @@ class Animerco : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun animeDetailsParse(document: Document): SAnime {
|
||||
val anime = SAnime.create()
|
||||
anime.thumbnail_url = "https:" + document.select("div.poster img").attr("data-lazy-src")
|
||||
anime.thumbnail_url = document.select("div.poster img").attr("data-lazy-src")
|
||||
anime.title = document.select("div.data h1").text()
|
||||
anime.genre = document.select("div.sgeneros a").joinToString(", ") { it.text() }
|
||||
anime.description = document.select("div[itemprop=description] p").text()
|
||||
|
Loading…
x
Reference in New Issue
Block a user