From 2b3f5ba0ebfde602f5a5550bfb57f6780f7ff4d1 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sat, 8 Jul 2023 12:31:17 -0400 Subject: [PATCH] NIP-94: Add optional 'download' flag In Stemstr, we have notes that present the same audio file as both a downloadable wav file and a streamable m3u8. We would like other clients to know that the wav is meant to be downloaded and the m3u8 is meant to be played inline. The proposed change is adding a "download" flag to NIP-94 to signal this intent. --- 94.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/94.md b/94.md index 24dd346f..27a8358b 100644 --- a/94.md +++ b/94.md @@ -21,6 +21,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr * `magnet` (optional) URI to magnet file * `i` (optional) torrent infohash * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client +* `download` expresses that this file is intended to be presented as a download link, rather than played inline. Client's may choose to ignore this. ```json { @@ -37,7 +38,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr ["dim", ], ["magnet", ], ["i",], - ["blurhash", ] + ["blurhash", ], + ["download", ] ], "content": , "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>