diff --git a/cmd/mkdemo/main.go b/cmd/mkdemo/main.go index 661e501..c4e6fa0 100644 --- a/cmd/mkdemo/main.go +++ b/cmd/mkdemo/main.go @@ -42,19 +42,15 @@ func main() { password = base64.RawURLEncoding.EncodeToString(passwordBytes) } - // Create manifest - manifest := smsg.NewManifest("It Feels So Good (The Conductor & The Cowboy's Amnesia Mix)") - manifest.Artist = "Sonique" + // Create manifest with filename as title + title := filepath.Base(inputFile) + ext := filepath.Ext(title) + if ext != "" { + title = title[:len(title)-len(ext)] + } + manifest := smsg.NewManifest(title) manifest.LicenseType = "perpetual" manifest.Format = "dapp.fm/v1" - manifest.ReleaseType = "single" - manifest.Duration = 253 // 4:13 - manifest.AddTrack("It Feels So Good (The Conductor & The Cowboy's Amnesia Mix)", 0) - - // Artist links - direct to artist, skip the middlemen - // "home" = preferred landing page, artist name should always link here - manifest.AddLink("home", "https://linktr.ee/conductorandcowboy") - manifest.AddLink("beatport", "https://www.beatport.com/artist/the-conductor-the-cowboy/635335") // Create message with attachment (using binary attachment for v2 format) msg := smsg.NewMessage("Welcome to dapp.fm - Zero-Trust DRM for the open web.") diff --git a/demo/index.html b/demo/index.html index ed255c2..517aa9e 100644 --- a/demo/index.html +++ b/demo/index.html @@ -55,12 +55,6 @@ html, body { overflow-x: hidden; - scrollbar-width: none; - -ms-overflow-style: none; - } - - html::-webkit-scrollbar, body::-webkit-scrollbar { - display: none; } .value-item { diff --git a/examples/demo-sample.smsg b/examples/demo-sample.smsg new file mode 100644 index 0000000..7f77643 Binary files /dev/null and b/examples/demo-sample.smsg differ