Fix "No links founds"

Changed site url and changed from "referer" to "Referer". Now works
This commit is contained in:
contusionglory 2022-12-04 21:01:07 +00:00 committed by GitHub
parent 03539a408b
commit da7ee4cc54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,7 +179,7 @@ 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