Seeing if the sync still works

This commit is contained in:
KillerDogeEmpire 2023-02-06 15:04:59 -08:00
parent 4947c457e6
commit 63dabe3fc6
5 changed files with 5 additions and 14 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 5
version = 6
cloudstream {

View File

@ -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)

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {