diff --git a/app/src/main/java/com/lagradost/cloudstream3/plugins/RepositoryManager.kt b/app/src/main/java/com/lagradost/cloudstream3/plugins/RepositoryManager.kt index e77747ec..0f23782d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/plugins/RepositoryManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/plugins/RepositoryManager.kt @@ -74,8 +74,8 @@ object RepositoryManager { val fixedUrl = url.trim() return if (fixedUrl.contains("^https?://".toRegex())) { fixedUrl - } else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex())) { - fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\??)".toRegex(), "").let { + } else if (fixedUrl.contains("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex())) { + fixedUrl.replace("^(cloudstreamrepo://)|(https://cs\\.repo/\\??)".toRegex(), "").let { return@let if (!it.contains("^https?://".toRegex())) "https://${it}" else fixedUrl @@ -213,4 +213,4 @@ object RepositoryManager { output.write(dataBuffer, 0, readBytes) } } -} \ No newline at end of file +}