From 6f85b879ee8442e21a614982be4e23e1187b588d Mon Sep 17 00:00:00 2001 From: jmir1 Date: Mon, 11 Mar 2024 10:51:11 +0100 Subject: [PATCH 1/5] fix(all/chineseanime): Bump version code Due to mistiming a library change --- src/all/chineseanime/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/all/chineseanime/build.gradle b/src/all/chineseanime/build.gradle index e8b1b3e216..24acde31f0 100644 --- a/src/all/chineseanime/build.gradle +++ b/src/all/chineseanime/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.ChineseAnime' themePkg = 'animestream' baseUrl = 'https://www.chineseanime.vip' - overrideVersionCode = 6 + overrideVersionCode = 7 } apply from: "$rootDir/common.gradle" From c61a4478ccb85a27684a2b17cde823d6e93ce8eb Mon Sep 17 00:00:00 2001 From: Secozzi <49240133+Secozzi@users.noreply.github.com> Date: Mon, 11 Mar 2024 09:58:14 +0000 Subject: [PATCH 2/5] feat(multisrc/zorotheme): Force clear outdated hosts (#3043) --- lib-multisrc/zorotheme/build.gradle.kts | 2 +- .../tachiyomi/multisrc/zorotheme/ZoroTheme.kt | 23 +++++++++++++++---- .../animeextension/en/kaido/Kaido.kt | 7 +++--- .../animeextension/en/zoro/HiAnime.kt | 11 ++++----- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/lib-multisrc/zorotheme/build.gradle.kts b/lib-multisrc/zorotheme/build.gradle.kts index 986a514d96..a5b25fc7fc 100644 --- a/lib-multisrc/zorotheme/build.gradle.kts +++ b/lib-multisrc/zorotheme/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 1 +baseVersionCode = 2 dependencies { api(project(":lib:megacloud-extractor")) diff --git a/lib-multisrc/zorotheme/src/eu/kanade/tachiyomi/multisrc/zorotheme/ZoroTheme.kt b/lib-multisrc/zorotheme/src/eu/kanade/tachiyomi/multisrc/zorotheme/ZoroTheme.kt index 4fe14db2a3..4d66cf113b 100644 --- a/lib-multisrc/zorotheme/src/eu/kanade/tachiyomi/multisrc/zorotheme/ZoroTheme.kt +++ b/lib-multisrc/zorotheme/src/eu/kanade/tachiyomi/multisrc/zorotheme/ZoroTheme.kt @@ -36,6 +36,7 @@ abstract class ZoroTheme( override val lang: String, override val name: String, override val baseUrl: String, + private val hosterNames: List, ) : ConfigurableAnimeSource, ParsedAnimeHttpSource() { override val supportsLatest = true @@ -44,6 +45,7 @@ abstract class ZoroTheme( val preferences: SharedPreferences by lazy { Injekt.get().getSharedPreferences("source_$id", 0x0000) + .clearOldHosts() } private val docHeaders = headers.newBuilder().apply { @@ -54,8 +56,6 @@ abstract class ZoroTheme( protected open val ajaxRoute = "" - abstract val hosterNames: List - private val useEnglish by lazy { preferences.getTitleLang == "English" } private val markFiller by lazy { preferences.markFiller } @@ -238,9 +238,7 @@ abstract class ZoroTheme( return embedLinks.parallelCatchingFlatMap(::extractVideo) } - protected open fun extractVideo(server: VideoData): List