diff --git a/src/es/animeflv/build.gradle b/src/es/animeflv/build.gradle index 87603ed75f..d6927a1303 100644 --- a/src/es/animeflv/build.gradle +++ b/src/es/animeflv/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'AnimeFLV' extClass = '.AnimeFlv' - extVersionCode = 54 + extVersionCode = 55 } apply from: "$rootDir/common.gradle" diff --git a/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt b/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt index 35461a16cd..be897e0a66 100644 --- a/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt +++ b/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt @@ -17,11 +17,10 @@ import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor import eu.kanade.tachiyomi.lib.youruploadextractor.YourUploadExtractor import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.util.asJsoup +import eu.kanade.tachiyomi.util.parallelCatchingFlatMapBlocking +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import kotlinx.serialization.json.Json -import kotlinx.serialization.json.JsonObject -import kotlinx.serialization.json.jsonArray -import kotlinx.serialization.json.jsonObject -import kotlinx.serialization.json.jsonPrimitive import okhttp3.Request import okhttp3.Response import org.jsoup.nodes.Document @@ -49,7 +48,7 @@ class AnimeFlv : ConfigurableAnimeSource, ParsedAnimeHttpSource() { companion object { private const val PREF_QUALITY_KEY = "preferred_quality" - private const val PREF_QUALITY_DEFAULT = "480" + private const val PREF_QUALITY_DEFAULT = "720" private val QUALITY_LIST = arrayOf("1080", "720", "480", "360") private const val PREF_SERVER_KEY = "preferred_server" @@ -105,39 +104,25 @@ class AnimeFlv : ConfigurableAnimeSource, ParsedAnimeHttpSource() { override fun episodeFromElement(element: Element) = throw UnsupportedOperationException() + /*--------------------------------Video extractors------------------------------------*/ + private val streamTapeExtractor by lazy { StreamTapeExtractor(client) } + private val okruExtractor by lazy { OkruExtractor(client) } + private val yourUploadExtractor by lazy { YourUploadExtractor(client) } + private val streamWishExtractor by lazy { StreamWishExtractor(client, headers.newBuilder().add("Referer", "$baseUrl/").build()) } + override fun videoListParse(response: Response): List