Skip to content

Commit

Permalink
Fix(hi/YoMovies): Update source (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 authored Oct 10, 2024
1 parent 5469cd0 commit 25e922a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/hi/yomovies/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'YoMovies'
extClass = '.YoMovies'
extVersionCode = 19
extVersionCode = 20
isNsfw = true
}

Expand All @@ -10,6 +10,6 @@ apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib:dood-extractor'))
implementation(project(':lib:mixdrop-extractor'))
implementation "dev.datlag.jsunpacker:jsunpacker:1.0.1"
implementation libs.jsunpacker
implementation(project(':lib:playlist-utils'))
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import eu.kanade.tachiyomi.util.parallelCatchingFlatMapBlocking
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
import okhttp3.Response
Expand Down Expand Up @@ -145,13 +144,12 @@ class YoMovies : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val document = response.asJsoup()

val videoList = document.select("div[id*=tab]:has(div.movieplay > iframe)")
.parallelCatchingFlatMapBlocking { server ->
.flatMap { server ->
val iframe = server.selectFirst("div.movieplay > iframe")!!
val name = document.selectFirst("ul.idTabs > li:has(a[href=#${server.id()}]) div.les-title")
?.text()
?.let { "[$it] - " }
.orEmpty()

extractVideosFromIframe(iframe.attr("abs:src"), name)
}

Expand Down

0 comments on commit 25e922a

Please sign in to comment.