Another Vidstream fix (#851)

* Vidstream Fix

* Another Vidstream Fix
This commit is contained in:
Stormunblessed 2022-03-22 09:57:08 +00:00 committed by GitHub
parent 3797808350
commit 7fa18fad00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class NineAnimeProvider : MainAPI() {
"Recently Updated (Chinese)"
),
Pair("$mainUrl/ajax/home/widget?name=random", "Random"),
).map { (url, name) ->
).apmap { (url, name) ->
val home = Jsoup.parse(
app.get(
url

View file

@ -22,6 +22,10 @@ class VizcloudOnline : WcoStream() {
override var mainUrl = "https://vizcloud.online"
}
class VizcloudXyz : WcoStream() {
override var mainUrl = "https://vizcloud.xyz"
}
open class WcoStream : ExtractorApi() {
override var name = "VidStream" //Cause works for animekisa and wco
override var mainUrl = "https://vidstream.pro"
@ -94,7 +98,8 @@ open class WcoStream : ExtractorApi() {
}
}
}
if (mainUrl == "https://vidstream.pro" || mainUrl == "https://vidstreamz.online" || mainUrl == "https://vizcloud2.online") {
if (mainUrl == "https://vidstream.pro" || mainUrl == "https://vidstreamz.online" || mainUrl == "https://vizcloud2.online"
|| mainUrl == "https://vizcloud.xyz") {
if (it.file.contains("m3u8")) {
hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(it.file.replace("#.mp4",""), null,
headers = mapOf("Referer" to url)), true)

View file

@ -98,6 +98,7 @@ val extractorApis: Array<ExtractorApi> = arrayOf(
Vizcloud(),
Vizcloud2(),
VizcloudOnline(),
VizcloudXyz(),
Mp4Upload(),
StreamTape(),
MixDrop(),