Initial commit
This commit is contained in:
commit
98ed7e8839
2263 changed files with 108711 additions and 0 deletions
22
src/fr/frenchanime/build.gradle
Normal file
22
src/fr/frenchanime/build.gradle
Normal file
|
@ -0,0 +1,22 @@
|
|||
ext {
|
||||
extName = 'French Anime'
|
||||
extClass = '.FrenchAnime'
|
||||
themePkg = 'datalifeengine'
|
||||
baseUrl = 'https://french-anime.com'
|
||||
overrideVersionCode = 6
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation(project(':lib:dood-extractor'))
|
||||
implementation(project(':lib:vido-extractor'))
|
||||
implementation(project(':lib:uqload-extractor'))
|
||||
implementation(project(':lib:vudeo-extractor'))
|
||||
implementation(project(':lib:streamhidevid-extractor'))
|
||||
implementation(project(':lib:upstream-extractor'))
|
||||
implementation(project(':lib:streamvid-extractor'))
|
||||
implementation(project(':lib:sibnet-extractor'))
|
||||
implementation(project(':lib:okru-extractor'))
|
||||
implementation(project(':lib:streamhub-extractor'))
|
||||
}
|
BIN
src/fr/frenchanime/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/fr/frenchanime/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
BIN
src/fr/frenchanime/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/fr/frenchanime/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
src/fr/frenchanime/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/fr/frenchanime/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
BIN
src/fr/frenchanime/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/fr/frenchanime/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/fr/frenchanime/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/fr/frenchanime/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
src/fr/frenchanime/res/web_hi_res_512.png
Normal file
BIN
src/fr/frenchanime/res/web_hi_res_512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
|
@ -0,0 +1,116 @@
|
|||
package eu.kanade.tachiyomi.animeextension.fr.frenchanime
|
||||
|
||||
import eu.kanade.tachiyomi.animesource.model.SEpisode
|
||||
import eu.kanade.tachiyomi.animesource.model.Video
|
||||
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
|
||||
import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor
|
||||
import eu.kanade.tachiyomi.lib.sibnetextractor.SibnetExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamhidevidextractor.StreamHideVidExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamhubextractor.StreamHubExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamvidextractor.StreamVidExtractor
|
||||
import eu.kanade.tachiyomi.lib.upstreamextractor.UpstreamExtractor
|
||||
import eu.kanade.tachiyomi.lib.uqloadextractor.UqloadExtractor
|
||||
import eu.kanade.tachiyomi.lib.vidoextractor.VidoExtractor
|
||||
import eu.kanade.tachiyomi.lib.vudeoextractor.VudeoExtractor
|
||||
import eu.kanade.tachiyomi.multisrc.datalifeengine.DataLifeEngine
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import eu.kanade.tachiyomi.util.parallelCatchingFlatMap
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class FrenchAnime : DataLifeEngine(
|
||||
"French Anime",
|
||||
"https://french-anime.com",
|
||||
"fr",
|
||||
) {
|
||||
|
||||
override val categories = arrayOf(
|
||||
Pair("<Sélectionner>", ""),
|
||||
Pair("Animes VF", "/animes-vf/"),
|
||||
Pair("Animes VOSTFR", "/animes-vostfr/"),
|
||||
Pair("Films VF et VOSTFR", "/films-vf-vostfr/"),
|
||||
)
|
||||
|
||||
override val genres = arrayOf(
|
||||
Pair("<Sélectionner>", ""),
|
||||
Pair("Action", "/genre/action/"),
|
||||
Pair("Aventure", "/genre/aventure/"),
|
||||
Pair("Arts martiaux", "/genre/arts-martiaux/"),
|
||||
Pair("Combat", "/genre/combat/"),
|
||||
Pair("Comédie", "/genre/comedie/"),
|
||||
Pair("Drame", "/genre/drame/"),
|
||||
Pair("Epouvante", "/genre/epouvante/"),
|
||||
Pair("Fantastique", "/genre/fantastique/"),
|
||||
Pair("Fantasy", "/genre/fantasy/"),
|
||||
Pair("Mystère", "/genre/mystere/"),
|
||||
Pair("Romance", "/genre/romance/"),
|
||||
Pair("Shonen", "/genre/shonen/"),
|
||||
Pair("Surnaturel", "/genre/surnaturel/"),
|
||||
Pair("Sci-Fi", "/genre/sci-fi/"),
|
||||
Pair("School life", "/genre/school-life/"),
|
||||
Pair("Ninja", "/genre/ninja/"),
|
||||
Pair("Seinen", "/genre/seinen/"),
|
||||
Pair("Horreur", "/genre/horreur/"),
|
||||
Pair("Tranche de vie", "/genre/tranchedevie/"),
|
||||
Pair("Psychologique", "/genre/psychologique/"),
|
||||
)
|
||||
|
||||
// ============================== Popular ===============================
|
||||
|
||||
override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/animes-vostfr/page/$page/")
|
||||
|
||||
// ============================== Episodes ==============================
|
||||
|
||||
override fun episodeListParse(response: Response): List<SEpisode> {
|
||||
val document = response.asJsoup()
|
||||
val episodeList = mutableListOf<SEpisode>()
|
||||
|
||||
val epsData = document.selectFirst("div.eps")?.text() ?: return emptyList()
|
||||
epsData.split(" ").filter { it.isNotBlank() }.forEach {
|
||||
val data = it.split("!", limit = 2)
|
||||
val episode = SEpisode.create()
|
||||
episode.episode_number = data[0].toFloatOrNull() ?: 0F
|
||||
episode.name = "Episode ${data[0]}"
|
||||
episode.url = data[1]
|
||||
episodeList.add(episode)
|
||||
}
|
||||
|
||||
return episodeList.reversed()
|
||||
}
|
||||
|
||||
override fun episodeListSelector(): String = throw UnsupportedOperationException()
|
||||
|
||||
override fun episodeFromElement(element: Element): SEpisode = throw UnsupportedOperationException()
|
||||
|
||||
// ============================ Video Links =============================
|
||||
override suspend fun getVideoList(episode: SEpisode): List<Video> {
|
||||
val list = episode.url.split(",").filter { it.isNotBlank() }.parallelCatchingFlatMap {
|
||||
with(it) {
|
||||
when {
|
||||
contains("dood") -> DoodExtractor(client).videosFromUrl(this)
|
||||
contains("upstream") -> UpstreamExtractor(client).videosFromUrl(this)
|
||||
contains("vudeo") -> VudeoExtractor(client).videosFromUrl(this)
|
||||
contains("uqload") -> UqloadExtractor(client).videosFromUrl(this)
|
||||
contains("guccihide") ||
|
||||
contains("streamhide") -> StreamHideVidExtractor(client).videosFromUrl(this)
|
||||
contains("streamvid") -> StreamVidExtractor(client).videosFromUrl(this)
|
||||
contains("vido") -> VidoExtractor(client).videosFromUrl(this)
|
||||
contains("sibnet") -> SibnetExtractor(client).videosFromUrl(this)
|
||||
contains("ok.ru") -> OkruExtractor(client).videosFromUrl(this)
|
||||
contains("streamhub.gg") -> StreamHubExtractor(client).videosFromUrl(this)
|
||||
else -> emptyList()
|
||||
}
|
||||
}
|
||||
}.sort()
|
||||
return list
|
||||
}
|
||||
|
||||
override fun videoFromElement(element: Element): Video = throw UnsupportedOperationException()
|
||||
|
||||
override fun videoListSelector(): String = throw UnsupportedOperationException()
|
||||
|
||||
override fun videoUrlParse(document: Document): String = throw UnsupportedOperationException()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue