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