fix(all/yomiroll): Switch to vrv links (#3050)

This commit is contained in:
Samfun75
2024-03-15 10:39:04 +03:00
committed by GitHub
parent 3219273e30
commit e860556080
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Yomiroll' extName = 'Yomiroll'
extClass = '.Yomiroll' extClass = '.Yomiroll'
extVersionCode = 30 extVersionCode = 31
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -152,7 +152,8 @@ data class VideoStreams(
) { ) {
@Serializable @Serializable
data class Stream( data class Stream(
val adaptive_hls: JsonObject, @SerialName("vo_adaptive_hls")
val adaptiveHls: JsonObject,
) )
} }

View File

@ -302,7 +302,7 @@ class Yomiroll : ConfigurableAnimeSource, AnimeHttpSource() {
audLang: String, audLang: String,
subsList: List<Track>, subsList: List<Track>,
): List<Video> { ): List<Video> {
return streams.streams?.adaptive_hls?.entries?.parallelMapNotNullBlocking { (_, value) -> return streams.streams?.adaptiveHls?.entries?.parallelMapNotNullBlocking { (_, value) ->
val stream = json.decodeFromString<HlsLinks>(value.jsonObject.toString()) val stream = json.decodeFromString<HlsLinks>(value.jsonObject.toString())
runCatching { runCatching {
val playlist = client.newCall(GET(stream.url)).execute() val playlist = client.newCall(GET(stream.url)).execute()