Fix Crunchy Qualities

This commit is contained in:
Blatzar 2022-09-13 17:28:40 +02:00
parent af2fc4f1f8
commit 7ecd74b98f
2 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 4 version = 5
cloudstream { cloudstream {

View File

@ -467,19 +467,19 @@ class KrunchyProvider : MainAPI() {
streams.apmap { stream -> streams.apmap { stream ->
if (stream.url.contains("m3u8") && stream.format!!.contains("adaptive")) { if (stream.url.contains("m3u8") && stream.format!!.contains("adaptive")) {
hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(stream.url, null), false) // hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(stream.url, null), false)
.forEach { // .forEach {
callback( callback(
ExtractorLink( ExtractorLink(
"Crunchyroll", "Crunchyroll",
"Crunchy - ${stream.title}", "Crunchy - ${stream.title}",
it.streamUrl, stream.url,
"", "",
getQualityFromName(it.quality.toString()), getQualityFromName(stream.resolution),
true true
) )
) )
} // }
} else if (stream.format == "trailer_hls") { } else if (stream.format == "trailer_hls") {
val premiumStream = stream.url val premiumStream = stream.url
.replace("\\/", "/") .replace("\\/", "/")