diff --git a/src/hi/yomovies/build.gradle b/src/hi/yomovies/build.gradle index 7695557fd0..6ac8725a76 100644 --- a/src/hi/yomovies/build.gradle +++ b/src/hi/yomovies/build.gradle @@ -1,11 +1,13 @@ -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.kotlin.android) +} ext { extName = 'YoMovies' pkgNameSuffix = 'hi.yomovies' extClass = '.YoMovies' - extVersionCode = 2 + extVersionCode = 3 libVersion = '13' containsNsfw = true } diff --git a/src/hi/yomovies/src/eu/kanade/tachiyomi/animeextension/hi/yomovies/YoMovies.kt b/src/hi/yomovies/src/eu/kanade/tachiyomi/animeextension/hi/yomovies/YoMovies.kt index 730834f189..abb547c48a 100644 --- a/src/hi/yomovies/src/eu/kanade/tachiyomi/animeextension/hi/yomovies/YoMovies.kt +++ b/src/hi/yomovies/src/eu/kanade/tachiyomi/animeextension/hi/yomovies/YoMovies.kt @@ -1,12 +1,12 @@ package eu.kanade.tachiyomi.animeextension.hi.yomovies import android.app.Application -import android.content.SharedPreferences import android.widget.Toast import androidx.preference.EditTextPreference import androidx.preference.ListPreference import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.AppInfo +import eu.kanade.tachiyomi.animeextension.hi.yomovies.extractors.MinoplresExtractor import eu.kanade.tachiyomi.animeextension.hi.yomovies.extractors.MovembedExtractor import eu.kanade.tachiyomi.animeextension.hi.yomovies.extractors.SpeedostreamExtractor import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource @@ -44,7 +44,7 @@ class YoMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() { override val client: OkHttpClient = network.cloudflareClient - private val preferences: SharedPreferences by lazy { + private val preferences by lazy { Injekt.get().getSharedPreferences("source_$id", 0x0000) } @@ -108,7 +108,7 @@ class YoMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() { // ============================== Episodes ============================== override fun episodeListParse(response: Response): List { - val document = response.asJsoup() + val document = response.use { it.asJsoup() } val episodeList = mutableListOf() val seasonList = document.select("div#seasons > div.tvseason") @@ -149,7 +149,7 @@ class YoMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() { // ============================ Video Links ============================= override fun videoListParse(response: Response): List