upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkieran <kieran@harkin.me>2024-04-18 09:40:20 +0100
committerkieran <kieran@harkin.me>2024-05-16 15:28:07 +0100
commit33d173b1c9122a26c36c1d0671e3008906966c20 (patch)
tree880dfb80ff43b9758293464f66f44b44782cbc6a
parent021a8f5bc7fd64ce701f7b57e9a79ee5d1387834 (diff)
Add comments / make infohash indexed like NIP94
-rw-r--r--35.md17
1 files changed, 13 insertions, 4 deletions
diff --git a/35.md b/35.md
index 33ed2be..4e80e3e 100644
--- a/35.md
+++ b/35.md
@@ -6,13 +6,14 @@ Torrents
6 6
7`draft` `optional` 7`draft` `optional`
8 8
9This NIP defined a new `kind 2003` which is Torrent. 9This NIP defined a new `kind 2003` which is a Torrent.
10 10
11`kind 2003` is a simple torrent index where there is enough information to search for content and construct the magnet link. No torrent files exist on nostr. 11`kind 2003` is a simple torrent index where there is enough information to search for content and construct the magnet link. No torrent files exist on nostr.
12 12
13## Tags 13## Tags
14- `btih`: V1 BitTorrent Info Hash, as seen in the [magnet link](https://www.bittorrent.org/beps/bep_0053.html) `magnet:?xt=urn:btih:HASH` 14- `i`: V1 BitTorrent Info Hash, as seen in the [magnet link](https://www.bittorrent.org/beps/bep_0053.html) `magnet:?xt=urn:btih:HASH`
15- `file`: A file entry inside the torrent, including the full path ie. `info/example.txt` 15- `file`: A file entry inside the torrent, including the full path ie. `info/example.txt`
16- `tracker`: (Optional) A tracker to use for this torrent
16 17
17In order to make torrents searchable by general category, you SHOULD include a few tags like `movie`, `tv`, `HD`, `UHD` etc. 18In order to make torrents searchable by general category, you SHOULD include a few tags like `movie`, `tv`, `HD`, `UHD` etc.
18 19
@@ -36,15 +37,17 @@ A second level prefix should be included where the database supports multiple me
36 37
37In some cases the url mapping isnt direct, mapping the url in general is out of scope for this NIP, the section above is only a guide so that implementers have enough information to succsesfully map the url if they wish. 38In some cases the url mapping isnt direct, mapping the url in general is out of scope for this NIP, the section above is only a guide so that implementers have enough information to succsesfully map the url if they wish.
38 39
39```json 40```jsonc
40{ 41{
41 "kind": 2003, 42 "kind": 2003,
42 "content": "<long-description-pre-formatted>", 43 "content": "<long-description-pre-formatted>",
43 "tags": [ 44 "tags": [
44 ["title", "<torrent-title>"], 45 ["title", "<torrent-title>"],
45 ["btih", "<bittorrent-info-hash>"], 46 ["i", "<bittorrent-info-hash>"],
46 ["file", "<file-name>", "<file-size-in-bytes>"], 47 ["file", "<file-name>", "<file-size-in-bytes>"],
47 ["file", "<file-name>", "<file-size-in-bytes>"], 48 ["file", "<file-name>", "<file-size-in-bytes>"],
49 ["tracker", "udp://mytacker.com:1337"],
50 ["tracker", "http://1337-tracker.net/announce"],
48 ["t", "tcat:video,movie,4k"], 51 ["t", "tcat:video,movie,4k"],
49 ["t", "newznab:2045"], 52 ["t", "newznab:2045"],
50 ["t", "imdb:tt15239678"], 53 ["t", "imdb:tt15239678"],
@@ -56,6 +59,12 @@ In some cases the url mapping isnt direct, mapping the url in general is out of
56} 59}
57``` 60```
58 61
62## Torrent Comments
63
64A torrent comment is a `kind 2004` event which is used to reply to a torrent event.
65
66This event works exactly like a `kind 1` and should follow `NIP-10` for tagging.
67
59## Implementations 68## Implementations
601. [dtan.xyz](https://git.v0l.io/Kieran/dtan) 691. [dtan.xyz](https://git.v0l.io/Kieran/dtan)
612. [nostrudel.ninja](https://github.com/hzrd149/nostrudel/tree/next/src/views/torrents) \ No newline at end of file 702. [nostrudel.ninja](https://github.com/hzrd149/nostrudel/tree/next/src/views/torrents) \ No newline at end of file