Skip to content

A Kotlin multi-platform wrapper around the SponsorBlock API

License

Notifications You must be signed in to change notification settings

zt64/sponsor-block-kt

Repository files navigation

sponsorblock-kt

Maven Central Version
badge-platform-jvm badge-platform-js badge-platform-js-node badge-platform-linux badge-platform-windows badge-platform-macos badge-platform-ios badge-platform-tvos badge-platform-watchos

Kotlin multiplatform client for the SponsorBlock API. Using Ktor for networking.

Setup

[versions]
sbkt = "x.y.z"

[libraries]
sbkt-client = { module = "dev.zt64.sbkt:client", version.ref = "sbkt" }

Make sure to replace x.y.z with the latest version and to add a Ktor engine to your dependencies.

Usage

val sb = SponsorBlockClient()
val videoId = "dQw4w9WgXcQ"

val segments = sb.getSegments(videoId)

License

GPL v3.0

About

A Kotlin multi-platform wrapper around the SponsorBlock API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages