fix [legionanime] (#1099)
This commit is contained in:
committed by
GitHub
parent
b375293d79
commit
837c7b741e
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'LegionAnime'
|
extName = 'LegionAnime'
|
||||||
pkgNameSuffix = 'es.legionanime'
|
pkgNameSuffix = 'es.legionanime'
|
||||||
extClass = '.LegionAnime'
|
extClass = '.LegionAnime'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ class LegionAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
} else {
|
} else {
|
||||||
it.jsonObject["name"]!!.jsonPrimitive.content.substringAfter("-").reversed()
|
it.jsonObject["name"]!!.jsonPrimitive.content.substringAfter("-").reversed()
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
when {
|
when {
|
||||||
url.contains("streamtape") -> {
|
url.contains("streamtape") -> {
|
||||||
val video = StreamTapeExtractor(client).videoFromUrl(url, server)
|
val video = StreamTapeExtractor(client).videoFromUrl(url, server)
|
||||||
@ -209,7 +210,8 @@ class LegionAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
val newUrl = url.replace("fembed", "embedsito").replace("vanfem", "embedsito")
|
val newUrl = url.replace("fembed", "embedsito").replace("vanfem", "embedsito")
|
||||||
try {
|
try {
|
||||||
videoList.addAll(FembedExtractor(client).videosFromUrl(newUrl, server))
|
videoList.addAll(FembedExtractor(client).videosFromUrl(newUrl, server))
|
||||||
} catch (_: Exception) {}
|
} catch (_: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
url.contains("sb") -> {
|
url.contains("sb") -> {
|
||||||
val video = StreamSBExtractor(client).videosFromUrl(url, headers)
|
val video = StreamSBExtractor(client).videosFromUrl(url, headers)
|
||||||
@ -224,7 +226,8 @@ class LegionAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
if (video.isNotBlank()) {
|
if (video.isNotBlank()) {
|
||||||
videoList.add(Video(video, server, video))
|
videoList.add(Video(video, server, video))
|
||||||
}
|
}
|
||||||
} catch (_: Exception) {}
|
} catch (_: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
url.contains("yourupload") -> {
|
url.contains("yourupload") -> {
|
||||||
val headers = headers.newBuilder().add("referer", "https://www.yourupload.com/").build()
|
val headers = headers.newBuilder().add("referer", "https://www.yourupload.com/").build()
|
||||||
@ -237,6 +240,9 @@ class LegionAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
videoList.add(Video(videoUrl, server, videoUrl))
|
videoList.add(Video(videoUrl, server, videoUrl))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (_: Exception) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return videoList
|
return videoList
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user