Skip to content

Commit

Permalink
Merge pull request #261 from besidesa/patch-1
Browse files Browse the repository at this point in the history
Fix Vixcloud Extractor
  • Loading branch information
stantanasi authored Jan 25, 2025
2 parents 23ca972 + ef1f700 commit 9995aca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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.paris"
private const val URL = "https://$DOMAIN/"
private const val MAX_SEARCH_RESULTS = 60

Expand Down

0 comments on commit 9995aca

Please sign in to comment.