mirror of
				https://github.com/hexated/cloudstream-extensions-hexated.git
				synced 2024-08-15 00:03:22 +00:00 
			
		
		
		
	small fix
This commit is contained in:
		
							parent
							
								
									1b9b9fae18
								
							
						
					
					
						commit
						f5612b146b
					
				
					 4 changed files with 7 additions and 8 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| // use an integer for version numbers | ||||
| version = 24 | ||||
| version = 25 | ||||
| 
 | ||||
| 
 | ||||
| cloudstream { | ||||
|  |  | |||
|  | @ -34,7 +34,7 @@ class Loklok : MainAPI() { | |||
|         private val headers = mutableMapOf( | ||||
|             "lang" to "en", | ||||
|             "versioncode" to "33", | ||||
|             "clienttype" to "android_tem3", | ||||
|             "clienttype" to "android_Official", | ||||
|             "deviceid" to getDeviceId() | ||||
|         ) | ||||
| 
 | ||||
|  | @ -231,7 +231,7 @@ class Loklok : MainAPI() { | |||
|                     RequestBodyTypes.JSON.toMediaTypeOrNull() | ||||
|                 ) | ||||
|             val json = app.get( | ||||
|                 "$pcApiUrl/movieDrama/getPlayInfo?category=${res.category}&contentId=${res.id}&episodeId=${res.epId}&definition=${video.code}", | ||||
|                 "$apiUrl/media/previewInfo?category=${res.category}&contentId=${res.id}&episodeId=${res.epId}&definition=${video.code}", | ||||
|                 headers = headers, | ||||
|             ).parsedSafe<PreviewResponse>()?.data | ||||
|             callback.invoke( | ||||
|  | @ -239,7 +239,7 @@ class Loklok : MainAPI() { | |||
|                     this.name, | ||||
|                     this.name, | ||||
|                     json?.mediaUrl ?: return@apmap null, | ||||
|                     "https://loklok.com/", | ||||
|                     "", | ||||
|                     getQuality(json.currentDefinition ?: ""), | ||||
|                     isM3u8 = true, | ||||
|                 ) | ||||
|  |  | |||
|  | @ -678,7 +678,7 @@ object SoraExtractor : SoraStream() { | |||
| 
 | ||||
|         json.definitionList?.map { video -> | ||||
|             val media = app.get( | ||||
|                 "$soraSecondAPI/movieDrama/getPlayInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}", | ||||
|                 "$soraAPI/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}", | ||||
|                 headers = soraHeaders, | ||||
|             ).parsedSafe<SorastreamResponse>()?.data | ||||
| 
 | ||||
|  | @ -687,7 +687,7 @@ object SoraExtractor : SoraStream() { | |||
|                     this.name, | ||||
|                     this.name, | ||||
|                     media?.mediaUrl ?: return@map null, | ||||
|                     "https://loklok.com/", | ||||
|                     "", | ||||
|                     getSoraQuality(media.currentDefinition ?: ""), | ||||
|                     true, | ||||
|                 ) | ||||
|  |  | |||
|  | @ -41,13 +41,12 @@ import kotlin.collections.ArrayList | |||
| import kotlin.math.min | ||||
| 
 | ||||
| val soraAPI = base64DecodeAPI("cA==YXA=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=") | ||||
| val soraSecondAPI = base64DecodeAPI("cGM=Yi8=d2U=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=") | ||||
| val soraBackupAPI = base64DecodeAPI("dg==LnQ=bGw=aGk=dGM=dXM=Lmo=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=") | ||||
| 
 | ||||
| val soraHeaders = mapOf( | ||||
|     "lang" to "en", | ||||
|     "versioncode" to "33", | ||||
|     "clienttype" to "android_tem3", | ||||
|     "clienttype" to "android_Official", | ||||
|     "deviceid" to getDeviceId(), | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue