Fix CineBlogProvider No links found

referer is written in lower case, the first letter need to be uppercase otherwise the site will see this as another headers
This commit is contained in:
contusionglory 2022-12-07 07:17:51 +00:00 committed by GitHub
parent b4366f6368
commit 491595829c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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