mirror of
https://github.com/recloudstream/cloudstream-extensions.git
synced 2024-08-15 03:03:54 +00:00
Fix Crunchy Qualities
This commit is contained in:
parent
af2fc4f1f8
commit
7ecd74b98f
2 changed files with 14 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -467,19 +467,19 @@ class KrunchyProvider : MainAPI() {
|
|||
|
||||
streams.apmap { stream ->
|
||||
if (stream.url.contains("m3u8") && stream.format!!.contains("adaptive")) {
|
||||
hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(stream.url, null), false)
|
||||
.forEach {
|
||||
// hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(stream.url, null), false)
|
||||
// .forEach {
|
||||
callback(
|
||||
ExtractorLink(
|
||||
"Crunchyroll",
|
||||
"Crunchy - ${stream.title}",
|
||||
it.streamUrl,
|
||||
stream.url,
|
||||
"",
|
||||
getQualityFromName(it.quality.toString()),
|
||||
getQualityFromName(stream.resolution),
|
||||
true
|
||||
)
|
||||
)
|
||||
}
|
||||
// }
|
||||
} else if (stream.format == "trailer_hls") {
|
||||
val premiumStream = stream.url
|
||||
.replace("\\/", "/")
|
||||
|
|
Loading…
Reference in a new issue