forked from recloudstream/cloudstream
		
	fix for loadlinks (#798)
This commit is contained in:
		
							parent
							
								
									62266cedb2
								
							
						
					
					
						commit
						a0f3620ae8
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -149,7 +149,7 @@ class AllMoviesForYouProvider : MainAPI() { | ||||||
|                                 name, |                                 name, | ||||||
|                                 season.first, |                                 season.first, | ||||||
|                                 epNum, |                                 epNum, | ||||||
|                                 href, |                                 fixUrl(href), | ||||||
|                                 fixUrlNull(poster), |                                 fixUrlNull(poster), | ||||||
|                                 date |                                 date | ||||||
|                             ) |                             ) | ||||||
|  | @ -175,7 +175,7 @@ class AllMoviesForYouProvider : MainAPI() { | ||||||
|                 title, |                 title, | ||||||
|                 url, |                 url, | ||||||
|                 type, |                 type, | ||||||
|                 url |                 fixUrl(url) | ||||||
|             ) { |             ) { | ||||||
|                 posterUrl = backgroundPoster |                 posterUrl = backgroundPoster | ||||||
|                 this.year = year?.toIntOrNull() |                 this.year = year?.toIntOrNull() | ||||||
|  | @ -193,12 +193,12 @@ class AllMoviesForYouProvider : MainAPI() { | ||||||
|         callback: (ExtractorLink) -> Unit |         callback: (ExtractorLink) -> Unit | ||||||
|     ): Boolean { |     ): Boolean { | ||||||
|         val doc = app.get(data).document |         val doc = app.get(data).document | ||||||
|         val iframe = doc.select("body iframe").map { it.attr("src") } |         val iframe = doc.select("body iframe").map { fixUrl(it.attr("src")) } | ||||||
|         iframe.apmap { id -> |         iframe.apmap { id -> | ||||||
|             if (id.contains("trembed")) { |             if (id.contains("trembed")) { | ||||||
|                 val soup = app.get(id).document |                 val soup = app.get(id).document | ||||||
|                 soup.select("body iframe").map { |                 soup.select("body iframe").map { | ||||||
|                     val link = it.attr("src").replace("streamhub.to/d/","streamhub.to/e/") |                     val link = fixUrl(it.attr("src").replace("streamhub.to/d/","streamhub.to/e/")) | ||||||
|                     loadExtractor(link, data, callback) |                     loadExtractor(link, data, callback) | ||||||
|                 } |                 } | ||||||
|             } else loadExtractor(id, data, callback) |             } else loadExtractor(id, data, callback) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue