Skip to content

Commit

Permalink
Merge pull request #90 from Dark25/FilmPalast-fix
Browse files Browse the repository at this point in the history
Fix(de/FilmPalast): Fix process extractor
  • Loading branch information
Dark25 authored Sep 19, 2024
2 parents 3de3a2e + 516c346 commit 8133848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/de/filmpalast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
ext {
extName = 'FilmPalast'
extClass = '.FilmPalast'
extVersionCode = 19
extVersionCode = 20
}

apply from: "$rootDir/common.gradle"

dependencies {
implementation(project(':lib:filemoon-extractor'))
implementation(project(':lib:voe-extractor'))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
import eu.kanade.tachiyomi.lib.filemoonextractor.FilemoonExtractor
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
Expand Down Expand Up @@ -87,13 +86,13 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
element.attr("abs:data-player-url")
}
when {
url.contains("https://voe.sx") && hosterSelection.contains("voe") ->
url.contains("voe") && hosterSelection.contains("voe") ->
VoeExtractor(client).videosFromUrl(url)

url.contains("https://upstream.to") && hosterSelection.contains("up") ->
url.contains("upstream") && hosterSelection.contains("up") ->
UpstreamExtractor(client).videoFromUrl(url)

url.contains("https://streamtape.com") && hosterSelection.contains("stape") -> {
url.contains("streamtape") && hosterSelection.contains("stape") -> {
runCatching {
val stapeHeaders = Headers.headersOf(
"Referer",
Expand All @@ -119,7 +118,7 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}.getOrNull()
}

url.contains("https://evoload.io") && hosterSelection.contains("evo") -> {
url.contains("evoload") && hosterSelection.contains("evo") -> {
val quality = "Evoload"
document.selectFirst("#EvoVid_html5_api")?.attr("src")?.let { videoUrl ->
if (videoUrl.contains("EvoStreams")) {
Expand All @@ -129,12 +128,9 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}

url.contains("filemoon.sx") && hosterSelection.contains("moon") ->
FilemoonExtractor(client).videosFromUrl(url)
url.contains("hide.com") && hosterSelection.contains("hide") ->
url.contains("hide") && hosterSelection.contains("hide") ->
StreamHideVidExtractor(client).videosFromUrl(url, "StreamHide")
url.contains("streamvid.net") && hosterSelection.contains("vid") ->
url.contains("streamvid") && hosterSelection.contains("vid") ->
StreamHideVidExtractor(client).videosFromUrl(url, "StreamVid")

"wolfstream" in url && hosterSelection.contains("wolf") -> {
Expand Down Expand Up @@ -258,7 +254,6 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
"Streamtape",
"Evoload",
"Upstream",
"Filemoon",
"StreamHide",
"StreamVid",
"WolfStream",
Expand All @@ -268,7 +263,6 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
"https://streamtape.com",
"https://evoload.io",
"https://upstream.to",
"https://filemoon.sx",
"hide.com",
"streamvid.net",
"https://wolfstream",
Expand All @@ -282,7 +276,6 @@ class FilmPalast : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
"stape",
"evo",
"up",
"moon",
"hide",
"vid",
"wolf",
Expand Down

0 comments on commit 8133848

Please sign in to comment.