From 8be1d24f9f73a7ea0af6cda14c85e3d1b54e3140 Mon Sep 17 00:00:00 2001 From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:09:20 -0300 Subject: [PATCH 1/3] fix: Update baseUrl --- src/all/chineseanime/build.gradle | 4 ++-- .../tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/chineseanime/build.gradle b/src/all/chineseanime/build.gradle index e81f86c4d6..d7f1071093 100644 --- a/src/all/chineseanime/build.gradle +++ b/src/all/chineseanime/build.gradle @@ -2,7 +2,7 @@ ext { extName = 'ChineseAnime' extClass = '.ChineseAnime' themePkg = 'animestream' - baseUrl = 'https://chineseanime.top' + baseUrl = 'https://www.chineseanime.vip' overrideVersionCode = 5 } @@ -12,4 +12,4 @@ dependencies { implementation(project(":lib:dailymotion-extractor")) implementation(project(":lib:streamwish-extractor")) implementation(project(":lib:playlist-utils")) -} \ No newline at end of file +} diff --git a/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt b/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt index 5be6f8efd3..a3aa3c810f 100644 --- a/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt +++ b/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt @@ -11,7 +11,7 @@ import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream class ChineseAnime : AnimeStream( "all", "ChineseAnime", - "https://chineseanime.top", + "https://www.chineseanime.vip", ) { // =============================== Search =============================== From 0f4c6ecca28a6b2ab1a0a942a1b65ca42616a9d5 Mon Sep 17 00:00:00 2001 From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:31:52 -0300 Subject: [PATCH 2/3] feat: Add StreamVid extractor --- src/all/chineseanime/build.gradle | 1 + .../tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/all/chineseanime/build.gradle b/src/all/chineseanime/build.gradle index d7f1071093..b8f4a6d52a 100644 --- a/src/all/chineseanime/build.gradle +++ b/src/all/chineseanime/build.gradle @@ -11,5 +11,6 @@ apply from: "$rootDir/common.gradle" dependencies { implementation(project(":lib:dailymotion-extractor")) implementation(project(":lib:streamwish-extractor")) + implementation(project(":lib:streamvid-extractor")) implementation(project(":lib:playlist-utils")) } diff --git a/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt b/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt index a3aa3c810f..0b82ee23b7 100644 --- a/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt +++ b/src/all/chineseanime/src/eu/kanade/tachiyomi/animeextension/all/chineseanime/ChineseAnime.kt @@ -5,6 +5,7 @@ import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.animeextension.all.chineseanime.extractors.VatchusExtractor import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.dailymotionextractor.DailymotionExtractor +import eu.kanade.tachiyomi.lib.streamvidextractor.StreamVidExtractor import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream @@ -26,14 +27,17 @@ class ChineseAnime : AnimeStream( // ============================ Video Links ============================= private val dailymotionExtractor by lazy { DailymotionExtractor(client, headers) } private val streamwishExtractor by lazy { StreamWishExtractor(client, headers) } + private val streamvidExtractor by lazy { StreamVidExtractor(client) } private val vatchusExtractor by lazy { VatchusExtractor(client, headers) } override fun getVideoList(url: String, name: String): List