diff options
| author | kieran <kieran@harkin.me> | 2024-05-16 15:28:04 +0100 |
|---|---|---|
| committer | kieran <kieran@harkin.me> | 2024-05-16 15:28:08 +0100 |
| commit | f59df9c24fb0c3f3e494f26a13cef7f48bd3851d (patch) | |
| tree | 3453bd11dcbc4df3fc603e14689609823133e561 | |
| parent | 33d173b1c9122a26c36c1d0671e3008906966c20 (diff) | |
update tag keys
| -rw-r--r-- | 35.md | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -11,7 +11,7 @@ This NIP defined a new `kind 2003` which is a Torrent. | |||
| 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 | - `i`: V1 BitTorrent Info Hash, as seen in the [magnet link](https://www.bittorrent.org/beps/bep_0053.html) `magnet:?xt=urn:btih:HASH` | 14 | - `x`: 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 | - `tracker`: (Optional) A tracker to use for this torrent |
| 17 | 17 | ||
| @@ -19,9 +19,9 @@ In order to make torrents searchable by general category, you SHOULD include a f | |||
| 19 | 19 | ||
| 20 | ## Tag prefixes | 20 | ## Tag prefixes |
| 21 | 21 | ||
| 22 | Tag prefixes are used to label the content with references, ie. `["t", "imdb:1234"]` | 22 | Tag prefixes are used to label the content with references, ie. `["i", "imdb:1234"]` |
| 23 | 23 | ||
| 24 | - `tcat`: A comma separated text category path, ie. `["t", "tcat:video,movie,4k"]`, this should also match the `newznab` category in a best effort approach. | 24 | - `tcat`: A comma separated text category path, ie. `["i", "tcat:video,movie,4k"]`, this should also match the `newznab` category in a best effort approach. |
| 25 | - `newznab`: The category ID from [newznab](https://github.com/Prowlarr/Prowlarr/blob/develop/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs) | 25 | - `newznab`: The category ID from [newznab](https://github.com/Prowlarr/Prowlarr/blob/develop/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs) |
| 26 | - `tmdb`: [The movie database](https://www.themoviedb.org/) id. | 26 | - `tmdb`: [The movie database](https://www.themoviedb.org/) id. |
| 27 | - `ttvdb`: [TV database](https://thetvdb.com/) id. | 27 | - `ttvdb`: [TV database](https://thetvdb.com/) id. |
| @@ -43,16 +43,16 @@ In some cases the url mapping isnt direct, mapping the url in general is out of | |||
| 43 | "content": "<long-description-pre-formatted>", | 43 | "content": "<long-description-pre-formatted>", |
| 44 | "tags": [ | 44 | "tags": [ |
| 45 | ["title", "<torrent-title>"], | 45 | ["title", "<torrent-title>"], |
| 46 | ["i", "<bittorrent-info-hash>"], | 46 | ["x", "<bittorrent-info-hash>"], |
| 47 | ["file", "<file-name>", "<file-size-in-bytes>"], | 47 | ["file", "<file-name>", "<file-size-in-bytes>"], |
| 48 | ["file", "<file-name>", "<file-size-in-bytes>"], | 48 | ["file", "<file-name>", "<file-size-in-bytes>"], |
| 49 | ["tracker", "udp://mytacker.com:1337"], | 49 | ["tracker", "udp://mytacker.com:1337"], |
| 50 | ["tracker", "http://1337-tracker.net/announce"], | 50 | ["tracker", "http://1337-tracker.net/announce"], |
| 51 | ["t", "tcat:video,movie,4k"], | 51 | ["i", "tcat:video,movie,4k"], |
| 52 | ["t", "newznab:2045"], | 52 | ["i", "newznab:2045"], |
| 53 | ["t", "imdb:tt15239678"], | 53 | ["i", "imdb:tt15239678"], |
| 54 | ["t", "tmdb:movie:693134"], | 54 | ["i", "tmdb:movie:693134"], |
| 55 | ["t", "ttvdb:movie:290272"], | 55 | ["i", "ttvdb:movie:290272"], |
| 56 | ["t", "movie"], | 56 | ["t", "movie"], |
| 57 | ["t", "4k"], | 57 | ["t", "4k"], |
| 58 | ] | 58 | ] |