mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Fix "No links founds"
Changed site url and changed from "referer" to "Referer". Now works
This commit is contained in:
parent
03539a408b
commit
da7ee4cc54
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
|
|
||||||
class CineBlogProvider : MainAPI() {
|
class CineBlogProvider : MainAPI() {
|
||||||
override var lang = "it"
|
override var lang = "it"
|
||||||
override var mainUrl = "https://cb01.rip"
|
override var mainUrl = "https://cb01.li"
|
||||||
override var name = "CB01"
|
override var name = "CB01"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override val hasChromecastSupport = true
|
override val hasChromecastSupport = true
|
||||||
|
@ -179,9 +179,9 @@ class CineBlogProvider : MainAPI() {
|
||||||
))
|
))
|
||||||
|
|
||||||
val url2= Regex("""src='((.|\\n)*?)'""").find(test.text)?.groups?.get(1)?.value.toString()
|
val url2= Regex("""src='((.|\\n)*?)'""").find(test.text)?.groups?.get(1)?.value.toString()
|
||||||
val trueUrl = app.get(url2, headers = mapOf("referer" to mainUrl)).url
|
val trueUrl = app.get(url2, headers = mapOf("Referer" to mainUrl)).url
|
||||||
loadExtractor(trueUrl, data, subtitleCallback, callback)
|
loadExtractor(trueUrl, data, subtitleCallback, callback)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue