forked from recloudstream/cloudstream
		
	fixed streamingcommunity
This commit is contained in:
		
							parent
							
								
									4b185019fe
								
							
						
					
					
						commit
						f3c004b80a
					
				
					 2 changed files with 19 additions and 18 deletions
				
			
		|  | @ -47,7 +47,6 @@ class TenshiProvider : MainAPI() { | ||||||
|     override suspend fun getMainPage(): HomePageResponse { |     override suspend fun getMainPage(): HomePageResponse { | ||||||
|         val items = ArrayList<HomePageList>() |         val items = ArrayList<HomePageList>() | ||||||
|         val soup = app.get(mainUrl, interceptor = ddosGuardKiller).document |         val soup = app.get(mainUrl, interceptor = ddosGuardKiller).document | ||||||
|         println(soup) |  | ||||||
|         for (section in soup.select("#content > section")) { |         for (section in soup.select("#content > section")) { | ||||||
|             try { |             try { | ||||||
|                 if (section.attr("id") == "toplist-tabs") { |                 if (section.attr("id") == "toplist-tabs") { | ||||||
|  |  | ||||||
|  | @ -52,24 +52,26 @@ data class Image( | ||||||
|     @JsonProperty("url") val url: String, |     @JsonProperty("url") val url: String, | ||||||
|     @JsonProperty("type") val type: String, |     @JsonProperty("type") val type: String, | ||||||
|     @JsonProperty("sc_url") val scURL: String, |     @JsonProperty("sc_url") val scURL: String, | ||||||
|     @JsonProperty("proxy") val proxy: Proxy, | //    @JsonProperty("proxy") val proxy: Proxy, | ||||||
|     @JsonProperty("server") val server: Proxy | //    @JsonProperty("server") val server: Proxy | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| data class Proxy( | // Proxy is not used and crashes otherwise | ||||||
|     @JsonProperty("id") val id: Long, | 
 | ||||||
|     @JsonProperty("type") val type: String, | //data class Proxy( | ||||||
|     @JsonProperty("ip") val ip: String, | //    @JsonProperty("id") val id: Long, | ||||||
|     @JsonProperty("number") val number: Long, | //    @JsonProperty("type") val type: String, | ||||||
|     @JsonProperty("storage") val storage: Long, | //    @JsonProperty("ip") val ip: String, | ||||||
|     @JsonProperty("max_storage") val maxStorage: Long, | //    @JsonProperty("number") val number: Long, | ||||||
|     @JsonProperty("max_conversions") val maxConversions: Any? = null, | //    @JsonProperty("storage") val storage: Long, | ||||||
|     @JsonProperty("max_publications") val maxPublications: Any? = null, | //    @JsonProperty("max_storage") val maxStorage: Long, | ||||||
|     @JsonProperty("created_at") val createdAt: String, | //    @JsonProperty("max_conversions") val maxConversions: Any? = null, | ||||||
|     @JsonProperty("updated_at") val updatedAt: String, | //    @JsonProperty("max_publications") val maxPublications: Any? = null, | ||||||
|     @JsonProperty("upload_bandwidth") val uploadBandwidth: Any? = null, | //    @JsonProperty("created_at") val createdAt: String, | ||||||
|     @JsonProperty("upload_bandwidth_limit") val uploadBandwidthLimit: Any? = null | //    @JsonProperty("updated_at") val updatedAt: String, | ||||||
| ) | //    @JsonProperty("upload_bandwidth") val uploadBandwidth: Any? = null, | ||||||
|  | //    @JsonProperty("upload_bandwidth_limit") val uploadBandwidthLimit: Any? = null | ||||||
|  | //) | ||||||
| 
 | 
 | ||||||
| data class Season( | data class Season( | ||||||
|     @JsonProperty("id") val id: Long, |     @JsonProperty("id") val id: Long, | ||||||
|  | @ -126,7 +128,7 @@ data class TrailerElement( | ||||||
| 
 | 
 | ||||||
| class StreamingcommunityProvider : MainAPI() { | class StreamingcommunityProvider : MainAPI() { | ||||||
|     override val lang = "it" |     override val lang = "it" | ||||||
|     override var mainUrl = "https://streamingcommunity.top" |     override var mainUrl = "https://streamingcommunity.monster" | ||||||
|     override var name = "Streamingcommunity" |     override var name = "Streamingcommunity" | ||||||
|     override val hasMainPage = true |     override val hasMainPage = true | ||||||
|     override val hasChromecastSupport = true |     override val hasChromecastSupport = true | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue