Seeing if the sync still works
This commit is contained in:
parent
4947c457e6
commit
63dabe3fc6
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 6
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -6,7 +6,6 @@ import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
|||
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||
import com.lagradost.cloudstream3.R.string.year
|
||||
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
||||
import com.lagradost.cloudstream3.ui.settings.SettingsProviders
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
||||
|
@ -214,7 +213,6 @@ class AllAnimeProvider : MainAPI() {
|
|||
|
||||
|
||||
override suspend fun load(url: String): LoadResponse? {
|
||||
val document = app.get(url).document
|
||||
val rhino = Context.enter()
|
||||
rhino.initSafeStandardObjects()
|
||||
rhino.optimizationLevel = -1
|
||||
|
@ -238,19 +236,12 @@ class AllAnimeProvider : MainAPI() {
|
|||
|
||||
val showData = parseJson<Edges>(jsEval as String)
|
||||
|
||||
val typeCheck =
|
||||
when (document.select(".info-content > .spe > span:nth-child(5), .info-content > .spe > span")
|
||||
.text().trim()) {
|
||||
"OVA" -> "OVA"
|
||||
"Movie" -> "Movie"
|
||||
else -> "TV"
|
||||
}
|
||||
|
||||
val title = showData.name
|
||||
val description = showData.description
|
||||
val poster = showData.thumbnail
|
||||
|
||||
val (malId, anilistId, image, cover) = getTracker(title, "tv", year)
|
||||
val (malId, anilistId) = getTracker(title, "tv", year = showData.airedStart?.year)
|
||||
|
||||
val episodes = showData.availableEpisodes.let {
|
||||
if (it == null) return@let Pair(null, null)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
Loading…
Reference in New Issue