Vidstream fix (#934)

This commit is contained in:
Stormunblessed 2022-04-10 23:06:17 +00:00 committed by GitHub
parent 117730e9a8
commit d4ddab83e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -30,6 +30,10 @@ class VizcloudLive : WcoStream() {
override var mainUrl = "https://vizcloud.live" override var mainUrl = "https://vizcloud.live"
} }
class VizcloudInfo : WcoStream() {
override var mainUrl = "https://vizcloud.info"
}
open class WcoStream : ExtractorApi() { open class WcoStream : ExtractorApi() {
override var name = "VidStream" //Cause works for animekisa and wco override var name = "VidStream" //Cause works for animekisa and wco
override var mainUrl = "https://vidstream.pro" override var mainUrl = "https://vidstream.pro"
@ -103,7 +107,7 @@ 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" || mainUrl == "https://vizcloud.live") { || mainUrl == "https://vizcloud.xyz" || mainUrl == "https://vizcloud.live" || mainUrl == "https://vizcloud.info") {
if (it.file.contains("m3u8")) { if (it.file.contains("m3u8")) {
hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(it.file.replace("#.mp4",""), null, hlsHelper.m3u8Generation(M3u8Helper.M3u8Stream(it.file.replace("#.mp4",""), null,
headers = mapOf("Referer" to url)), true) headers = mapOf("Referer" to url)), true)

View file

@ -100,6 +100,7 @@ val extractorApis: Array<ExtractorApi> = arrayOf(
VizcloudOnline(), VizcloudOnline(),
VizcloudXyz(), VizcloudXyz(),
VizcloudLive(), VizcloudLive(),
VizcloudInfo(),
Mp4Upload(), Mp4Upload(),
StreamTape(), StreamTape(),
MixDrop(), MixDrop(),