Anime-Loads: fix (#1616)
This commit is contained in:
parent
55520120fb
commit
88e9f04011
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'Anime-Loads'
|
extName = 'Anime-Loads'
|
||||||
pkgNameSuffix = 'de.animeloads'
|
pkgNameSuffix = 'de.animeloads'
|
||||||
extClass = '.AnimeLoads'
|
extClass = '.AnimeLoads'
|
||||||
extVersionCode = 6
|
extVersionCode = 7
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,6 +228,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
|
val hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
|
||||||
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
||||||
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
|
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 neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
|
||||||
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
||||||
val nextlink = neexdoc.select("div#continue a").attr("href")
|
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 hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
|
||||||
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
||||||
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
|
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 neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
|
||||||
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
||||||
val nextlink = neexdoc.select("div#continue a").attr("href")
|
val nextlink = neexdoc.select("div#continue a").attr("href")
|
||||||
@ -359,7 +400,7 @@ class AnimeLoads : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
|
|
||||||
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
|
hoster.contains("doodstream") && hosterSelection?.contains("dood") == true -> {
|
||||||
val link = client.newCall(GET("$baseUrl/leave/$anipart")).execute().request.url.toString()
|
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 {
|
val video = try {
|
||||||
DoodExtractor(client).videoFromUrl(link, quality)
|
DoodExtractor(client).videoFromUrl(link, quality)
|
||||||
} catch (e: Exception) {
|
} 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 hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
|
||||||
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
||||||
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
|
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 neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
|
||||||
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
||||||
val nextlink = neexdoc.select("div#continue a").attr("href")
|
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 hoster = it.substringAfter("\"hoster\":\"").substringBefore("\",\"")
|
||||||
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
val linkpart = it.substringAfter("\"link\":\"").substringBefore("\"}]")
|
||||||
val leaveurl = client.newCall(GET("$baseUrl/leave/$linkpart")).execute().request.url.toString()
|
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 neexurl = client.newCall(GET(leaveurl)).execute().request.url.toString()
|
||||||
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
val neexdoc = client.newCall(GET(leaveurl)).execute().asJsoup()
|
||||||
val nextlink = neexdoc.select("div#continue a").attr("href")
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user