fix(tr/animeler): Fix video extractor (#2443)
This commit is contained in:
@ -8,7 +8,7 @@ ext {
|
|||||||
extName = 'Animeler'
|
extName = 'Animeler'
|
||||||
pkgNameSuffix = 'tr.animeler'
|
pkgNameSuffix = 'tr.animeler'
|
||||||
extClass = '.Animeler'
|
extClass = '.Animeler'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,6 +227,10 @@ class Animeler : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||||||
val doc = response.use { it.asJsoup() }
|
val doc = response.use { it.asJsoup() }
|
||||||
val iframeUrl = doc.selectFirst("div.episode-player-box > iframe")
|
val iframeUrl = doc.selectFirst("div.episode-player-box > iframe")
|
||||||
?.attr("src")
|
?.attr("src")
|
||||||
|
?: doc.selectFirst("script:containsData(embedUrl)")
|
||||||
|
?.data()
|
||||||
|
?.substringAfter("\"embedUrl\": \"")
|
||||||
|
?.substringBefore('"')
|
||||||
?: throw Exception("No video available.")
|
?: throw Exception("No video available.")
|
||||||
|
|
||||||
val playerBody = { it: String ->
|
val playerBody = { it: String ->
|
||||||
|
Reference in New Issue
Block a user