diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt index ba441e5..a0ff01b 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt @@ -60,6 +60,12 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) { .split("/") setRepo(split[0], split[1], "gitlab") } + !url.startsWith("https://") -> { // assume default as github + val split = url + .removeSurrounding("/") + .split("/") + setRepo(split[0], split[1], "github") + } else -> throw IllegalArgumentException("Unknown domain, please set repository via setRepo(user, repo, type)") } }