mirror of
				https://github.com/hexated/cloudstream-extensions-hexated.git
				synced 2024-08-15 00:03:22 +00:00 
			
		
		
		
	fixed #427
This commit is contained in:
		
							parent
							
								
									08ad4dd567
								
							
						
					
					
						commit
						dba0cf5d27
					
				
					 3 changed files with 12 additions and 2 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| import org.jetbrains.kotlin.konan.properties.Properties | ||||
| 
 | ||||
| // use an integer for version numbers | ||||
| version = 198 | ||||
| version = 199 | ||||
| 
 | ||||
| android { | ||||
|     defaultConfig { | ||||
|  |  | |||
|  | @ -2469,7 +2469,7 @@ object SoraExtractor : SoraStream() { | |||
|             ExtractorLink( | ||||
|                 "SFMovies", | ||||
|                 "SFMovies", | ||||
|                 fixUrl(video, base64DecodeAPI("cw==bmU=Ym8=Y2s=YmE=dC8=bmU=cy4=b3c=bmQ=d2k=ZS4=b3I=LmM=b2I=Ymw=cy4=bmU=Ym8=Y2s=YmE=Ly8=czo=dHA=aHQ=")), | ||||
|                 fixUrl(video, getSfServer() ?: return), | ||||
|                 "", | ||||
|                 Qualities.P1080.value, | ||||
|                 INFER_TYPE | ||||
|  |  | |||
|  | @ -46,6 +46,8 @@ import kotlin.math.min | |||
| 
 | ||||
| var watchflxCookies: Map<String, String>? = null | ||||
| var filmxyCookies: Map<String,String>? = null | ||||
| var sfServer: String? = null | ||||
| 
 | ||||
| val encodedIndex = arrayOf( | ||||
|     "GamMovies", | ||||
|     "JSMovies", | ||||
|  | @ -761,6 +763,14 @@ suspend fun getTvMoviesServer(url: String, season: Int?, episode: Int?): Pair<St | |||
|                     }.lastOrNull() | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| suspend fun getSfServer() = sfServer ?: fetchSfServer().also { sfServer = it } | ||||
| 
 | ||||
| suspend fun fetchSfServer(): String? { | ||||
|     return app.get(base64DecodeAPI("ZQ==dXI=YXo=eC8=bGk=bWY=ZWE=dHI=L3M=aW4=bWE=aS0=YXA=aS8=YXA=YW0=cmU=c3Q=dC8=bmU=cy4=b3c=bmQ=d2k=ZS4=b3I=LmM=b2I=Ymw=aS4=YXA=YW0=cmU=c3Q=Ly8=czo=dHA=aHQ=")) | ||||
|         .parsedSafe<List<Map<String, String>>>()?.first()?.get("link") | ||||
| } | ||||
| 
 | ||||
| suspend fun getFilmxyCookies(url: String) = filmxyCookies ?: fetchFilmxyCookies(url).also { filmxyCookies = it } | ||||
| suspend fun fetchFilmxyCookies(url: String): Map<String, String> { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue