Fix(hi/YoMovies): Update source (#299)
This commit is contained in:
parent
2f236071b9
commit
53856f9275
2 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'YoMovies'
|
extName = 'YoMovies'
|
||||||
extClass = '.YoMovies'
|
extClass = '.YoMovies'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ import eu.kanade.tachiyomi.animesource.model.Video
|
||||||
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
|
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import eu.kanade.tachiyomi.util.asJsoup
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import eu.kanade.tachiyomi.util.parallelCatchingFlatMapBlocking
|
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
@ -145,13 +144,12 @@ class YoMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||||
val document = response.asJsoup()
|
val document = response.asJsoup()
|
||||||
|
|
||||||
val videoList = document.select("div[id*=tab]:has(div.movieplay > iframe)")
|
val videoList = document.select("div[id*=tab]:has(div.movieplay > iframe)")
|
||||||
.parallelCatchingFlatMapBlocking { server ->
|
.flatMap { server ->
|
||||||
val iframe = server.selectFirst("div.movieplay > iframe")!!
|
val iframe = server.selectFirst("div.movieplay > iframe")!!
|
||||||
val name = document.selectFirst("ul.idTabs > li:has(a[href=#${server.id()}]) div.les-title")
|
val name = document.selectFirst("ul.idTabs > li:has(a[href=#${server.id()}]) div.les-title")
|
||||||
?.text()
|
?.text()
|
||||||
?.let { "[$it] - " }
|
?.let { "[$it] - " }
|
||||||
.orEmpty()
|
.orEmpty()
|
||||||
|
|
||||||
extractVideosFromIframe(iframe.attr("abs:src"), name)
|
extractVideosFromIframe(iframe.attr("abs:src"), name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue