From d96324beff1a67cf799aa5f1198e61519078946a Mon Sep 17 00:00:00 2001
From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com>
Date: Thu, 9 Nov 2023 20:20:07 -0300
Subject: [PATCH 1/3] fix: Update baseUrl
---
src/tr/hdfilmcehennemi/AndroidManifest.xml | 2 +-
.../animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt | 2 +-
.../tr/hdfilmcehennemi/HDFilmCehennemiUrlActivity.kt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tr/hdfilmcehennemi/AndroidManifest.xml b/src/tr/hdfilmcehennemi/AndroidManifest.xml
index 4f1a918e38..dc3c5bea75 100644
--- a/src/tr/hdfilmcehennemi/AndroidManifest.xml
+++ b/src/tr/hdfilmcehennemi/AndroidManifest.xml
@@ -13,7 +13,7 @@
diff --git a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
index 36b4db4993..5f6bb8f180 100644
--- a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
+++ b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
@@ -37,7 +37,7 @@ class HDFilmCehennemi : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override val name = "HDFilmCehennemi"
- override val baseUrl = "https://www.hdfilmcehennemi.life"
+ override val baseUrl = "https://www.hdfilmcehennemi.de"
override val lang = "tr"
diff --git a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemiUrlActivity.kt b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemiUrlActivity.kt
index 3eee1d9d3f..cdb442641f 100644
--- a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemiUrlActivity.kt
+++ b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemiUrlActivity.kt
@@ -8,7 +8,7 @@ import android.util.Log
import kotlin.system.exitProcess
/**
- * Springboard that accepts https://www.hdfilmcehennemi.life/- intents
+ * Springboard that accepts https://www.hdfilmcehennemi.de/
- intents
* and redirects them to the main Aniyomi process.
*/
class HDFilmCehennemiUrlActivity : Activity() {
From 64fb74ec9f348f203debf961a5741c7e37c85be8 Mon Sep 17 00:00:00 2001
From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com>
Date: Thu, 9 Nov 2023 21:19:15 -0300
Subject: [PATCH 2/3] feat: Implement XBet extractor
---
.../tr/hdfilmcehennemi/HDFilmCehennemi.kt | 9 +--
.../extractors/XBetExtractor.kt | 65 +++++++++++++++++++
2 files changed, 70 insertions(+), 4 deletions(-)
create mode 100644 src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/extractors/XBetExtractor.kt
diff --git a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
index 5f6bb8f180..d9b1bda28a 100644
--- a/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
+++ b/src/tr/hdfilmcehennemi/src/eu/kanade/tachiyomi/animeextension/tr/hdfilmcehennemi/HDFilmCehennemi.kt
@@ -5,6 +5,7 @@ import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.tr.hdfilmcehennemi.extractors.RapidrameExtractor
import eu.kanade.tachiyomi.animeextension.tr.hdfilmcehennemi.extractors.VidmolyExtractor
+import eu.kanade.tachiyomi.animeextension.tr.hdfilmcehennemi.extractors.XBetExtractor
import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
import eu.kanade.tachiyomi.animesource.model.AnimesPage
@@ -96,8 +97,6 @@ class HDFilmCehennemi : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request {
val headers = headersBuilder()
- .add("Referer", "$baseUrl/")
- .add("Origin", baseUrl)
.add("X-Requested-With", "XMLHttpRequest")
.build()
@@ -175,6 +174,7 @@ class HDFilmCehennemi : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
// ============================ Video Links =============================
private val vidmolyExtractor by lazy { VidmolyExtractor(client, headers) }
private val rapidrameExtractor by lazy { RapidrameExtractor(client, headers) }
+ private val xbetExtractor by lazy { XBetExtractor(client, headers, json) }
override fun videoListParse(response: Response): List