forked from recloudstream/cloudstream
		
	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 -> |         urls?.apmap { url -> | ||||||
|             suspendSafeApiCall { |             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 |                 // Possible without token | ||||||
| 
 | 
 | ||||||
| //                val response = app.get(url) | //                val response = app.get(url) | ||||||
|  | @ -324,7 +315,7 @@ class SflixProvider(providerUrl: String, providerName: String) : MainAPI() { | ||||||
| 
 | 
 | ||||||
|                 val serverId = url.substringAfterLast(".") |                 val serverId = url.substringAfterLast(".") | ||||||
|                 val iframeLink = |                 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 |                         ?: return@suspendSafeApiCall | ||||||
| 
 | 
 | ||||||
|                 // Some smarter ws11 or w10 selection might be required in the future. |                 // Some smarter ws11 or w10 selection might be required in the future. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue