Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(multisrc/animestream/es): New source: AnimeYT.es and Anime.Tiodonghua.com and others fixs #2531

Merged
merged 11 commits into from
Nov 25, 2023
5 changes: 5 additions & 0 deletions multisrc/overrides/animestream/animeytes/additional.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
implementation(project(":lib-okru-extractor"))
implementation(project(":lib-streamtape-extractor"))
implementation(project(":lib-sendvid-extractor"))
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions multisrc/overrides/animestream/animeytes/src/AnimeYTES.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package eu.kanade.tachiyomi.animeextension.es.animeytes

import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor
import eu.kanade.tachiyomi.lib.sendvidextractor.SendvidExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream
import eu.kanade.tachiyomi.network.GET

class AnimeYTES : AnimeStream(
"es",
"AnimeYT.es",
"https://animeyt.es",
) {
override val animeListUrl = "$baseUrl/tv"

// ============================ Video Links =============================
private val okruExtractor by lazy { OkruExtractor(client) }
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) }
private val sendvidExtractor by lazy { SendvidExtractor(client, headers) }

override fun getVideoList(url: String, name: String): List<Video> {
return when (name) {
"OK" -> okruExtractor.videosFromUrl(url)
"Stream" -> streamtapeExtractor.videosFromUrl(url)
"Send" -> sendvidExtractor.videosFromUrl(url)
else -> emptyList()
}
}
}
7 changes: 7 additions & 0 deletions multisrc/overrides/animestream/tiodonghua/additional.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dependencies {

implementation(project(":lib-okru-extractor"))
implementation(project(":lib-mixdrop-extractor"))
implementation(project(":lib-voe-extractor"))
implementation(project(":lib-yourupload-extractor"))
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions multisrc/overrides/animestream/tiodonghua/src/Tiodonghua.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package eu.kanade.tachiyomi.animeextension.es.tiodonghua

import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor
import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor
import eu.kanade.tachiyomi.lib.youruploadextractor.YourUploadExtractor
import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream
import eu.kanade.tachiyomi.network.GET

class Tiodonghua : AnimeStream(
"es",
"Tiodonghua.com",
"https://anime.tiodonghua.com",
) {


// ============================ Video Links =============================
private val okruExtractor by lazy { OkruExtractor(client) }
private val voeExtractor by lazy { VoeExtractor(client) }
private val youruploadExtractor by lazy { YourUploadExtractor(client) }
private val mixdropExtractor by lazy { MixDropExtractor(client) }

override fun getVideoList(url: String, name: String): List<Video> {
return when (name) {
"Okru" -> okruExtractor.videosFromUrl(url)
"Voe" -> voeExtractor.videosFromUrl(url)
"YourUpload" -> youruploadExtractor.videoFromUrl(url, headers)
"MixDrop" -> mixdropExtractor.videosFromUrl(url)
else -> emptyList()
}
}

override val fetchFilters: Boolean
get() = false

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class AnimeStreamGenerator : ThemeSourceGenerator {
SingleLang("Animenosub", "https://animenosub.com", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("AnimeTitans", "https://animetitans.com", "ar", isNsfw = false, overrideVersionCode = 13),
SingleLang("AnimeXin", "https://animexin.vip", "all", isNsfw = false, overrideVersionCode = 7),
SingleLang("AnimeYT.es", "https://animeyt.es", "es", isNsfw = false, className = "AnimeYTES", pkgName = "animeytes"),
SingleLang("Tiodonghua.com", "https://anime.tiodonghua.com", "es", isNsfw = false, className = "Tiodonghua", pkgName = "tiodonghua"),
SingleLang("AsyaAnimeleri", "https://asyaanimeleri.com", "tr", isNsfw = false, overrideVersionCode = 1),
SingleLang("ChineseAnime", "https://chineseanime.top", "all", isNsfw = false, overrideVersionCode = 3),
SingleLang("desu-online", "https://desu-online.pl", "pl", className = "DesuOnline", isNsfw = false, overrideVersionCode = 3),
Expand Down
2 changes: 1 addition & 1 deletion src/es/ennovelas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext {
extName = 'EnNovelas'
pkgNameSuffix = 'es.ennovelas'
extClass = '.EnNovelas'
extVersionCode = 6
extVersionCode = 7
libVersion = '13'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class EnNovelas : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

override val name = "EnNovelas"

override val baseUrl = "https://f.ennovelas.net"
override val baseUrl = "https://u.ennovelas.net"

override val lang = "es"

Expand All @@ -52,7 +52,7 @@ class EnNovelas : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

override fun popularAnimeSelector(): String = ".block-post"

override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/novelas/page/$page")
override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/telenovelas/page/$page")

override fun popularAnimeFromElement(element: Element): SAnime {
val anime = SAnime.create()
Expand Down