small fix

This commit is contained in:
hexated 2023-02-22 23:58:26 +07:00
parent ed3c2f87c6
commit d88510e712

View file

@ -863,7 +863,11 @@ object SoraExtractor : SoraStream() {
"vidcloud", "upcloud"
).apmap { server ->
val sources = app.get(
"$consumetFlixhqAPI/watch?episodeId=$episodeId&mediaId=$id&server=$server",
if(server == "vidcloud") {
"$consumetFlixhqAPI/watch?episodeId=$episodeId&mediaId=$id"
} else {
"$consumetFlixhqAPI/watch?episodeId=$episodeId&mediaId=$id&server=$server"
},
).parsedSafe<ConsumetSourcesResponse>()
val name = fixTitle(server)
sources?.sources?.map {