Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vixcloud Extractor #261

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import org.jsoup.nodes.Document
import retrofit2.Retrofit
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Url

class VixcloudExtractor : Extractor() {
Expand Down Expand Up @@ -72,7 +73,11 @@ class VixcloudExtractor : Extractor() {
return Video(
source = finalUrl,
subtitles = listOf(),
type = MimeTypes.APPLICATION_M3U8
type = MimeTypes.APPLICATION_M3U8,
headers = mapOf(
"Referer" to mainUrl,
"User-Agent" to "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
)
)
}

Expand All @@ -90,6 +95,7 @@ class VixcloudExtractor : Extractor() {
}

@GET
@Headers("User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)")
suspend fun getSource(@Url url: String): Document

data class WindowVideo(
Expand All @@ -102,4 +108,4 @@ class VixcloudExtractor : Extractor() {
@SerializedName("expires") val expires: String
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import java.util.concurrent.TimeUnit

object StreamingCommunityProvider : Provider {

private const val DOMAIN = "streamingcommunity.prof"
private const val DOMAIN = "streamingcommunity.ooo"
private const val URL = "https://$DOMAIN/"
private const val MAX_SEARCH_RESULTS = 60

Expand Down