diff --git a/src/en/aniwatch/build.gradle b/src/en/aniwatch/build.gradle new file mode 100644 index 00000000..2a73adbf --- /dev/null +++ b/src/en/aniwatch/build.gradle @@ -0,0 +1,9 @@ +ext { + extName = 'AniWatchtv' + extClass = '.AniWatchtv' + themePkg = 'zorotheme' + baseUrl = 'https://aniwatchtv.to' + overrideVersionCode = 1 +} + +apply from: "$rootDir/common.gradle" \ No newline at end of file diff --git a/src/en/aniwatch/res/mipmap-hdpi/ic_launcher.png b/src/en/aniwatch/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..4ee31d9d Binary files /dev/null and b/src/en/aniwatch/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/en/aniwatch/res/mipmap-mdpi/ic_launcher.png b/src/en/aniwatch/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..db658e48 Binary files /dev/null and b/src/en/aniwatch/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/en/aniwatch/res/mipmap-xhdpi/ic_launcher.png b/src/en/aniwatch/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..0d963107 Binary files /dev/null and b/src/en/aniwatch/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/en/aniwatch/res/mipmap-xxhdpi/ic_launcher.png b/src/en/aniwatch/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..c1a4969c Binary files /dev/null and b/src/en/aniwatch/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/en/aniwatch/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/aniwatch/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..b114f3d5 Binary files /dev/null and b/src/en/aniwatch/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/en/aniwatch/src/eu/kanade/tachiyomi/animeextension/en/aniwatch/AniWatch.kt b/src/en/aniwatch/src/eu/kanade/tachiyomi/animeextension/en/aniwatch/AniWatch.kt new file mode 100644 index 00000000..ef1eb6c3 --- /dev/null +++ b/src/en/aniwatch/src/eu/kanade/tachiyomi/animeextension/en/aniwatch/AniWatch.kt @@ -0,0 +1,40 @@ +package eu.kanade.tachiyomi.animeextension.en.aniwatch + +import eu.kanade.tachiyomi.animesource.model.SAnime +import eu.kanade.tachiyomi.animesource.model.Video +import eu.kanade.tachiyomi.lib.megacloudextractor.MegaCloudExtractor +import eu.kanade.tachiyomi.multisrc.zorotheme.ZoroTheme +import eu.kanade.tachiyomi.network.GET +import okhttp3.Request +import org.jsoup.nodes.Element + +class AniWatch : ZoroTheme( + "en", + "AniWatchtv", + "https://aniwatchtv.to", + hosterNames = listOf( + "VidSrc", + "MegaCloud", + ), +) { + override val id = 8051984946387208343L + + override val ajaxRoute = "/v2" + + private val megaCloudExtractor by lazy { MegaCloudExtractor(client, headers, preferences) } + + override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/recently-updated?page=$page", docHeaders) + + override fun popularAnimeFromElement(element: Element): SAnime { + return super.popularAnimeFromElement(element).apply { + url = url.substringBefore("?") + } + } + + override fun extractVideo(server: VideoData): List