mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed dopebox and solarmovie for people with sflix blocked
This commit is contained in:
parent
c4d4173694
commit
73bcb4145e
1 changed files with 1 additions and 10 deletions
|
@ -305,15 +305,6 @@ class SflixProvider(providerUrl: String, providerName: String) : MainAPI() {
|
|||
|
||||
urls?.apmap { url ->
|
||||
suspendSafeApiCall {
|
||||
// val resolved = WebViewResolver(
|
||||
// Regex("""/getSources"""),
|
||||
// // This is unreliable, generating my own link instead
|
||||
//// additionalUrls = listOf(Regex("""^.*transport=polling(?!.*sid=).*$"""))
|
||||
// ).resolveUsingWebView(getRequestCreator(url))
|
||||
//// val extractorData = resolved.second.getOrNull(0)?.url?.toString()
|
||||
|
||||
// ------- Main site -------
|
||||
|
||||
// Possible without token
|
||||
|
||||
// val response = app.get(url)
|
||||
|
@ -324,7 +315,7 @@ class SflixProvider(providerUrl: String, providerName: String) : MainAPI() {
|
|||
|
||||
val serverId = url.substringAfterLast(".")
|
||||
val iframeLink =
|
||||
app.get("https://sflix.to/ajax/get_link/$serverId").mapped<IframeJson>().link
|
||||
app.get("${this.mainUrl}/ajax/get_link/$serverId").mapped<IframeJson>().link
|
||||
?: return@suspendSafeApiCall
|
||||
|
||||
// Some smarter ws11 or w10 selection might be required in the future.
|
||||
|
|
Loading…
Reference in a new issue