mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
b368fcce02
* add VostfreeProvider
* autoformat the code and add the changes requested
* remove com.lagradost.cloudstream3.animeproviders line
* optimized the getMainPage
* Add Sarlay's provider
* fix the research function and reshape the load
* Add NekosamaProvider
* add fuzzy for computing string distance
* correct the name of class
* fix and improve the search function
* rename nekosama class
* Remove no french provider
* NekosamaProvider working version
* Revert "Remove no french provider"
This reverts commit b177de518d
.
* use of apmap when necessary
* Nekosama add more results items from search
* Load function of vostfree optimized
* ""
* resolve conflict
* Add WiflixProvider
* Change title and use apmap
* No vostfree reference
* Add tags and complete season
* precise dub ou sub
* Update FrenchStream
* not anime movie
* Fix load movie for vostfree
* Add vido extractor for frenchStream
* fix reference vido
* doodstream work for Wiflix
* Udate vidoExtractor to take in account Wiflix ! Optimized FrenchStream to take directly the redirected link
* In Frenchstream dood is in reality streamlare
* Get MesFilmsProvider directly at Sarlay repository
* Requested changes are done
* Add showStatus to NekoSamaProvider
* show news episodes for neko-sama
* Requested changes done
* Add year for episodes
* French Stream change his mainUrl
* Improve research for wiflix
* add year of episodes and show the latest episode for vostfree
* Add more provider for Wiflix
* open the good extractor
* Fix Extractor
* change authors
Co-authored-by: Eddy <kingkama976@gmail.com>
35 lines
1.2 KiB
Kotlin
35 lines
1.2 KiB
Kotlin
|
|
package com.lagradost
|
|
import com.lagradost.cloudstream3.utils.*
|
|
import com.lagradost.cloudstream3.app
|
|
import org.jsoup.Jsoup
|
|
|
|
|
|
open class SibnetExtractor : ExtractorApi() {
|
|
override val name: String = "Sibnet"
|
|
override val mainUrl: String = "https://video.sibnet.ru"
|
|
private val srcRegex =
|
|
Regex("""player\.src\(\[\{src: \"(.*?)\"""") // would be possible to use the parse and find src attribute
|
|
override val requiresReferer = true
|
|
|
|
|
|
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
|
val cleaned_url = url
|
|
val html = app.get(cleaned_url)
|
|
with(html) { // raised error ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED (3003) is due to the response: "error_nofile"
|
|
srcRegex.find(this.text)?.groupValues?.get(1)?.let { link ->
|
|
return listOf(
|
|
ExtractorLink(
|
|
name,
|
|
name,
|
|
mainUrl + link,
|
|
cleaned_url, // voir si site demande le referer à mettre ici
|
|
Qualities.Unknown.value,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
return null
|
|
}
|
|
}
|