mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
i forgor the ?
This commit is contained in:
parent
7272dc67b7
commit
8406f6de65
1 changed files with 2 additions and 2 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
|
||||||
|
|
Loading…
Reference in a new issue