Vidstream Fix (#848)

This commit is contained in:
Stormunblessed 2022-03-21 18:19:29 +00:00 committed by GitHub
parent 71fb7538f3
commit ea13c66a86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -18,6 +18,10 @@ class Vizcloud2 : WcoStream() {
override var mainUrl = "https://vizcloud2.online"
}
class VizcloudOnline : WcoStream() {
override var mainUrl = "https://vizcloud.online"
}
open class WcoStream : ExtractorApi() {
override var name = "VidStream" //Cause works for animekisa and wco
override var mainUrl = "https://vidstream.pro"
@ -55,8 +59,8 @@ open class WcoStream : ExtractorApi() {
if (mapped.success) {
mapped.media.sources.forEach {
if (mainUrl == "https://vizcloud2.ru") {
if (it.file.contains("vizcloud2.ru")) {
if (mainUrl == "https://vizcloud2.ru" || mainUrl == "https://vizcloud.online") {
if (it.file.contains("vizcloud2.ru") || it.file.contains("vizcloud.online")) {
//Had to do this thing 'cause "list.m3u8#.mp4" gives 404 error so no quality is added
val link1080 = it.file.replace("list.m3u8#.mp4","H4/v.m3u8")
val link720 = it.file.replace("list.m3u8#.mp4","H3/v.m3u8")

View file

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