From 5918aa9a4e6fb6fa691bd9be517826fb34e158e9 Mon Sep 17 00:00:00 2001 From: Dark25 Date: Mon, 6 Jan 2025 01:05:27 +0100 Subject: [PATCH 1/2] fix klint --- src/ar/anime4up/build.gradle | 2 +- .../animeextension/ar/anime4up/Anime4Up.kt | 44 ++++++++++++++++--- 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/ar/anime4up/build.gradle b/src/ar/anime4up/build.gradle index 6509bfdcf8..98b9cb8f9a 100644 --- a/src/ar/anime4up/build.gradle +++ b/src/ar/anime4up/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Anime4up' extClass = '.Anime4Up' - extVersionCode = 64 + extVersionCode = 65 } apply from: "$rootDir/common.gradle" diff --git a/src/ar/anime4up/src/eu/kanade/tachiyomi/animeextension/ar/anime4up/Anime4Up.kt b/src/ar/anime4up/src/eu/kanade/tachiyomi/animeextension/ar/anime4up/Anime4Up.kt index dc78d63a1c..91ea9a88b5 100644 --- a/src/ar/anime4up/src/eu/kanade/tachiyomi/animeextension/ar/anime4up/Anime4Up.kt +++ b/src/ar/anime4up/src/eu/kanade/tachiyomi/animeextension/ar/anime4up/Anime4Up.kt @@ -38,7 +38,7 @@ class Anime4Up : ConfigurableAnimeSource, ParsedAnimeHttpSource() { override val name = "Anime4Up" - override val baseUrl = "https://anime4up.cam" + override val baseUrl = "https://anime4up.rest" override val lang = "ar" @@ -136,7 +136,6 @@ class Anime4Up : ConfigurableAnimeSource, ParsedAnimeHttpSource() { episode_number = name.substringAfterLast(" ").toFloatOrNull() ?: 0F } - // ============================ Video Links ============================= @Serializable data class Qualities( val fhd: Map = emptyMap(), @@ -144,14 +143,47 @@ class Anime4Up : ConfigurableAnimeSource, ParsedAnimeHttpSource() { val sd: Map = emptyMap(), ) + @Serializable + data class WatchServerData( + val name: String, + val link: String, + val order: String, + val icon: Boolean + ) + override fun videoListParse(response: Response): List