fix(all/yomiroll): Switch to vrv links (#3050)
This commit is contained in:
@ -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"
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Reference in New Issue
Block a user