diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt index a8b5653..5a68cfa 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt @@ -25,6 +25,14 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) { fun setRepo(user: String, repo: String) { repository = Repo(user, repo) } + fun setRepo(identifier: String) { + val split = identifier + .removePrefix("https://") + .removePrefix("github.com") + .removeSurrounding("/") + .split("/") + repository = Repo(split[0], split[1]) + } internal var pluginClassName: String? = null