AnimesVision: Fix video extractor on movies (#1040)
This commit is contained in:
@ -6,7 +6,7 @@ ext {
|
||||
extName = 'AnimesVision'
|
||||
pkgNameSuffix = 'pt.animesvision'
|
||||
extClass = '.AnimesVision'
|
||||
extVersionCode = 11
|
||||
extVersionCode = 12
|
||||
libVersion = '13'
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ class AnimesVision : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
val players = doc.select("div.server-item > a.btn")
|
||||
|
||||
return players.mapNotNull {
|
||||
val videos = players.mapNotNull {
|
||||
val id = it.attr("wire:click")
|
||||
.substringAfter("(")
|
||||
.substringBefore(")")
|
||||
@ -161,7 +161,12 @@ class AnimesVision : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
val resJson = json.decodeFromString<AVResponseDto>(responseBody)
|
||||
(resJson.serverMemo?.data?.framePlay ?: resJson.effects?.html)
|
||||
?.let(::parsePlayerData)
|
||||
}.flatten()
|
||||
}.flatten().toMutableList()
|
||||
|
||||
if ("/filmes/" in doc.location())
|
||||
parsePlayerData(doc.outerHtml())?.let { videos.addAll(it) }
|
||||
|
||||
return videos
|
||||
}
|
||||
|
||||
private fun parsePlayerData(data: String): List<Video>? {
|
||||
|
Reference in New Issue
Block a user