Mycima: fix thumbnail (#81)

This commit is contained in:
Ahmed gamal
2021-09-17 12:39:54 +02:00
committed by GitHub
parent 84ae8ec278
commit 88a2582569
4 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MY CIMA'
pkgNameSuffix = 'ar.mycima'
extClass = '.MyCima'
extVersionCode = 1
extVersionCode = 2
libVersion = '12'
}

View File

@ -21,7 +21,7 @@ class MyCima : ParsedAnimeHttpSource() {
override val name = "MY Cima"
override val baseUrl = "https://mycima.actor:2083"
override val baseUrl = "https://mycima.win:2083"
override val lang = "ar"
@ -41,8 +41,8 @@ class MyCima : ParsedAnimeHttpSource() {
anime.title = element.select("a").attr("title")
anime.thumbnail_url =
element.select("a > span.BG--GridItem")
.attr("data-lazy-style")
.substringAfter("background-image:url(")
.attr("style")
.substringAfter("-image:url(")
.substringBefore(");")
return anime
}
@ -124,7 +124,7 @@ class MyCima : ParsedAnimeHttpSource() {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.title = element.select("a > strong.hasyear").text()
anime.thumbnail_url = element.select("a > span.BG--GridItem").attr("data-lazy-style").substringAfter("background-image:url(").substringBefore(");")
anime.thumbnail_url = element.select("a > span.BG--GridItem").attr("style").substringAfter("-image:url(").substringBefore(");")
return anime
}
@ -180,7 +180,7 @@ class MyCima : ParsedAnimeHttpSource() {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.title = element.select("a > strong.hasyear").text()
anime.thumbnail_url = element.select("a > span").attr("data-lazy-style").substringAfter("background-image:url(").substringBefore(");")
anime.thumbnail_url = element.select("a > span").attr("style").substringAfter("-image:url(").substringBefore(");")
return anime
}

View File

@ -5,7 +5,7 @@ ext {
extName = 'MY CIMA MOVIES'
pkgNameSuffix = 'ar.mycimamovie'
extClass = '.MyCimaMovie'
extVersionCode = 1
extVersionCode = 2
libVersion = '12'
}

View File

@ -21,7 +21,7 @@ class MyCimaMovie : ParsedAnimeHttpSource() {
override val name = "MY Cima Movies"
override val baseUrl = "https://mycima.actor:2083"
override val baseUrl = "https://mycima.win:2083"
override val lang = "ar"
@ -41,8 +41,8 @@ class MyCimaMovie : ParsedAnimeHttpSource() {
anime.title = element.select("a strong.hasyear").text()
anime.thumbnail_url =
element.select("a > span.BG--GridItem")
.attr("data-lazy-style")
.substringAfter("background-image:url(")
.attr("style")
.substringAfter("-image:url(")
.substringBefore(");")
return anime
}
@ -106,7 +106,7 @@ class MyCimaMovie : ParsedAnimeHttpSource() {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.title = element.select("a > strong.hasyear").text()
anime.thumbnail_url = element.select("a > span.BG--GridItem").attr("data-lazy-style").substringAfter("background-image:url(").substringBefore(");")
anime.thumbnail_url = element.select("a > span.BG--GridItem").attr("style").substringAfter("-image:url(").substringBefore(");")
return anime
}
@ -162,7 +162,7 @@ class MyCimaMovie : ParsedAnimeHttpSource() {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.title = element.select("a > strong.hasyear").text()
anime.thumbnail_url = element.select("a > span").attr("data-lazy-style").substringAfter("background-image:url(").substringBefore(");")
anime.thumbnail_url = element.select("a > span").attr("style").substringAfter("-image:url(").substringBefore(");")
return anime
}