mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	bug fixes and add cast (#1156)
This commit is contained in:
		
							parent
							
								
									681cb952e8
								
							
						
					
					
						commit
						f46e799db7
					
				
					 4 changed files with 20 additions and 8 deletions
				
			
		|  | @ -79,7 +79,7 @@ class AltadefinizioneProvider : MainAPI() { | |||
|     override suspend fun load(url: String): LoadResponse { | ||||
|         val page = app.get(url) | ||||
|         val document = page.document | ||||
|         val title = document.selectFirst(" h1 > a")!!.text() | ||||
|         val title = document.selectFirst(" h1 > a")!!.text().replace("streaming","") | ||||
|         val description = document.select("#sfull").toString().substringAfter("altadefinizione").substringBeforeLast("fonte trama").parseAsHtml().toString() | ||||
|         val rating = null | ||||
| 
 | ||||
|  | @ -102,6 +102,13 @@ class AltadefinizioneProvider : MainAPI() { | |||
| 
 | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
|         val actors: List<ActorData> = | ||||
|             document.select("#staring > a").map { | ||||
|                 ActorData(actor = Actor(it.text())) | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
|             return newMovieLoadResponse( | ||||
|                 title, | ||||
|                 url, | ||||
|  | @ -114,7 +121,7 @@ class AltadefinizioneProvider : MainAPI() { | |||
|                 this.rating = rating | ||||
|                 this.recommendations = recomm | ||||
|                 this.duration = null | ||||
| 
 | ||||
|                 this.actors = actors | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
|  | @ -121,7 +121,6 @@ class CineblogProvider : MainAPI() { | |||
|         } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|         if (type == TvType.TvSeries) { | ||||
| 
 | ||||
|             val episodeList = ArrayList<Episode>() | ||||
|  | @ -160,7 +159,13 @@ class CineblogProvider : MainAPI() { | |||
|                 recomm | ||||
|             ) | ||||
|         } else { | ||||
| 
 | ||||
|             val actors: List<ActorData> = | ||||
|                 document.select("div.person").filter{it.selectFirst("div.img > a > img")?.attr("src")!!.contains("/no/cast.png").not()}.map { actordata -> | ||||
|                     val actorName = actordata.selectFirst("div.data > div.name > a")!!.text() | ||||
|                     val actorImage : String? = actordata.selectFirst("div.img > a > img")?.attr("src") | ||||
|                     val roleActor = actordata.selectFirst("div.data > div.caracter")!!.text() | ||||
|                     ActorData(actor = Actor(actorName, image = actorImage), roleString = roleActor ) | ||||
|                 } | ||||
|             return newMovieLoadResponse( | ||||
|                 title, | ||||
|                 url, | ||||
|  | @ -173,7 +178,7 @@ class CineblogProvider : MainAPI() { | |||
|                 this.rating = rating | ||||
|                 this.recommendations = recomm | ||||
|                 this.duration = null | ||||
| 
 | ||||
|                 this.actors = actors | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -128,7 +128,7 @@ data class TrailerElement( | |||
| 
 | ||||
| class StreamingcommunityProvider : MainAPI() { | ||||
|     override val lang = "it" | ||||
|     override var mainUrl = "https://streamingcommunity.monster" | ||||
|     override var mainUrl = "https://streamingcommunity.press" | ||||
|     override var name = "Streamingcommunity" | ||||
|     override val hasMainPage = true | ||||
|     override val hasChromecastSupport = true | ||||
|  |  | |||
|  | @ -56,7 +56,7 @@ class TantifilmProvider : MainAPI() { | |||
|         return doc.select("div.film.film-2").map { | ||||
|             val href = it.selectFirst("a")!!.attr("href") | ||||
|             val poster = it.selectFirst("img")!!.attr("src") | ||||
|             val name = it.selectFirst("a")!!.text().substringBefore("(") | ||||
|             val name = it.selectFirst("a > p")!!.text().substringBeforeLast("(") | ||||
|             MovieSearchResponse( | ||||
|                 name, | ||||
|                 href, | ||||
|  | @ -95,7 +95,7 @@ class TantifilmProvider : MainAPI() { | |||
|         val recomm = document.select("div.mediaWrap.mediaWrapAlt.recomended_videos").map { | ||||
|             val href = it.selectFirst("a")!!.attr("href") | ||||
|             val poster = it.selectFirst("img")!!.attr("src") | ||||
|             val name = it.selectFirst("a")!!.attr("title").substringBeforeLast("(") | ||||
|             val name = it.selectFirst("a > p")!!.text().substringBeforeLast("(") | ||||
|             MovieSearchResponse( | ||||
|                 name, | ||||
|                 href, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue