mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
oops forgor \ this time
This commit is contained in:
parent
8406f6de65
commit
e72f3ff8b9
1 changed files with 3 additions and 3 deletions
|
@ -74,8 +74,8 @@ object RepositoryManager {
|
||||||
val fixedUrl = url.trim()
|
val fixedUrl = url.trim()
|
||||||
return if (fixedUrl.contains("^https?://".toRegex())) {
|
return if (fixedUrl.contains("^https?://".toRegex())) {
|
||||||
fixedUrl
|
fixedUrl
|
||||||
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex())) {
|
} else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex())) {
|
||||||
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex(), "").let {
|
fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex(), "").let {
|
||||||
return@let if (!it.contains("^https?://".toRegex()))
|
return@let if (!it.contains("^https?://".toRegex()))
|
||||||
"https://${it}"
|
"https://${it}"
|
||||||
else fixedUrl
|
else fixedUrl
|
||||||
|
@ -213,4 +213,4 @@ object RepositoryManager {
|
||||||
output.write(dataBuffer, 0, readBytes)
|
output.write(dataBuffer, 0, readBytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue