Initial commit

This commit is contained in:
almightyhak 2024-06-20 11:54:12 +07:00
commit 98ed7e8839
2263 changed files with 108711 additions and 0 deletions

9
src/en/zoro/build.gradle Normal file
View file

@ -0,0 +1,9 @@
ext {
extName = 'HiAnime'
extClass = '.HiAnime'
themePkg = 'zorotheme'
baseUrl = 'https://hianime.to'
overrideVersionCode = 40
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -0,0 +1,36 @@
package eu.kanade.tachiyomi.animeextension.en.zoro
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.megacloudextractor.MegaCloudExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.multisrc.zorotheme.ZoroTheme
class HiAnime : ZoroTheme(
"en",
"HiAnime",
"https://hianime.to",
hosterNames = listOf(
"HD-1",
"HD-2",
"StreamTape",
),
) {
override val id = 6706411382606718900L
override val ajaxRoute = "/v2"
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) }
private val megaCloudExtractor by lazy { MegaCloudExtractor(client, headers, preferences) }
override fun extractVideo(server: VideoData): List<Video> {
return when (server.name) {
"StreamTape" -> {
streamtapeExtractor.videoFromUrl(server.link, "Streamtape - ${server.type}")
?.let(::listOf)
?: emptyList()
}
"HD-1", "HD-2" -> megaCloudExtractor.getVideosFromUrl(server.link, server.type, server.name)
else -> emptyList()
}
}
}