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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -152,7 +152,8 @@ data class VideoStreams(
) {
@Serializable
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,
subsList: List<Track>,
): 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())
runCatching {
val playlist = client.newCall(GET(stream.url)).execute()