Anime-Loads: fix (#1616)

This commit is contained in:
LuftVerbot 2023-05-17 19:42:13 +02:00 committed by GitHub
parent 55520120fb
commit 88e9f04011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 309 additions and 149 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Anime-Loads'
pkgNameSuffix = 'de.animeloads'
extClass = '.AnimeLoads'
extVersionCode = 6
extVersionCode = 7
libVersion = '13'
}

View File

@ -228,6 +228,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
if (leaveurl.contains(baseUrl)) {
val neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
val nextlink = neexdoc.select("div#continue a").attr("href")
@ -274,6 +275,45 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}
} else {
when {
hoster.contains("voesx") && hosterSelection?.contains("voe") == true -> {
val quality = "Voe Deutsch Sub"
val video = try {
VoeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("streamtapecom") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape Deutsch Sub"
val video = try {
StreamTapeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
val quality = "Doodstreams Deutsch Sub"
val video = try {
DoodExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
}
}
}
}
}
@ -324,6 +364,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
if (leaveurl.contains(baseUrl)) {
val neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
val nextlink = neexdoc.select("div#continue a").attr("href")
@ -359,7 +400,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
val link = client.newCall(GET("$baseUrl/leave/$anipart")).execute().request.url.toString()
val quality = "Doodstream Deutsch Sub"
val quality = "Doodstreams Deutsch Sub"
val video = try {
DoodExtractor(client).videoFromUrl(link, quality)
} catch (e: Exception) {
@ -370,6 +411,45 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}
} else {
when {
hoster.contains("voesx") && hosterSelection?.contains("voe") == true -> {
val quality = "Voe Deutsch Sub"
val video = try {
VoeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("streamtapecom") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape Deutsch Sub"
val video = try {
StreamTapeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
val quality = "Doodstreams Deutsch Sub"
val video = try {
DoodExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
}
}
}
}
}
@ -482,6 +562,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
if (leaveurl.contains(baseUrl)) {
val neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
val nextlink = neexdoc.select("div#continue a").attr("href")
@ -528,6 +609,45 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}
} else {
when {
hoster.contains("voesx") && hosterSelection?.contains("voe") == true -> {
val quality = "Voe Deutsch Dub"
val video = try {
VoeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("streamtapecom") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape Deutsch Dub"
val video = try {
StreamTapeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
val quality = "Doodstream Deutsch Dub"
val video = try {
DoodExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
}
}
}
}
}
@ -578,6 +698,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
if (leaveurl.contains(baseUrl)) {
val neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
val nextlink = neexdoc.select("div#continue a").attr("href")
@ -624,6 +745,45 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}
}
} else {
when {
hoster.contains("voesx") && hosterSelection?.contains("voe") == true -> {
val quality = "Voe Deutsch Dub"
val video = try {
VoeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("streamtapecom") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape Deutsch Dub"
val video = try {
StreamTapeExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
val quality = "Doodstream Deutsch Dub"
val video = try {
DoodExtractor(client).videoFromUrl(leaveurl, quality)
} catch (e: Exception) {
null
}
if (video != null) {
videoList.add(video)
}
}
}
}
}
}
}