From 6702a45076820cf58f978de802b3bf3322f05e5a Mon Sep 17 00:00:00 2001 From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:59:00 -0300 Subject: [PATCH] fix(all/chineseanime): Update baseUrl + add StreamVid extractor (#3037) --- src/all/chineseanime/build.gradle | 5 +++-- .../animeextension/all/chineseanime/ChineseAnime.kt | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/all/chineseanime/build.gradle b/src/all/chineseanime/build.gradle index 915947f9cd..e8b1b3e216 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 = 6 } @@ -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")) -} \ 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..74d5038370 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,13 +5,14 @@ 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 class ChineseAnime : AnimeStream( "all", "ChineseAnime", - "https://chineseanime.top", + "https://www.chineseanime.vip", ) { // =============================== Search =============================== @@ -26,6 +27,7 @@ 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