30817:nip-35
NIP-35: Torrents
Kind 2003, a torrent index carrying the info hash, the file list and the trackers needed to rebuild a magnet link.
Nostr Implementation Possibilities (mirror)
- published
- 2022-11-19
- revised
- 2024-09-03
NIP-35
Torrents
draft optional
This NIP defined a new kind 2003 which is a Torrent.
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.
Tags
x: V1 BitTorrent Info Hash, as seen in the magnet linkmagnet:?xt=urn:btih:HASHfile: A file entry inside the torrent, including the full path ie.info/example.txttracker: (Optional) A tracker to use for this torrent
In order to make torrents searchable by general category, you SHOULD include a few tags like movie, tv, HD, UHD etc.
Tag prefixes
Tag prefixes are used to label the content with references, ie. ["i", "imdb:1234"]
tcat: A comma separated text category path, ie.["i", "tcat:video,movie,4k"], this should also match thenewznabcategory in a best effort approach.newznab: The category ID from newznabtmdb: The movie database id.ttvdb: TV database id.imdb: IMDB id.mal: MyAnimeList id.anilist: AniList id.
A second level prefix should be included where the database supports multiple media types.
tmdb:movie:693134maps tothemoviedb.org/movie/693134ttvdb:movie:290272maps tothetvdb.com/movies/dune-part-twomal:anime:9253maps tomyanimelist.net/anime/9253mal:manga:17517maps tomyanimelist.net/manga/17517
In 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.
{
"kind": 2003,
"content": "<long-description-pre-formatted>",
"tags": [
["title", "<torrent-title>"],
["x", "<bittorrent-info-hash>"],
["file", "<file-name>", "<file-size-in-bytes>"],
["file", "<file-name>", "<file-size-in-bytes>"],
["tracker", "udp://mytacker.com:1337"],
["tracker", "http://1337-tracker.net/announce"],
["i", "tcat:video,movie,4k"],
["i", "newznab:2045"],
["i", "imdb:tt15239678"],
["i", "tmdb:movie:693134"],
["i", "ttvdb:movie:290272"],
["t", "movie"],
["t", "4k"],
]
}
Torrent Comments
A torrent comment is a kind 2004 event which is used to reply to a torrent event.
This event works exactly like a kind 1 and should follow NIP-10 for tagging.
Implementations
Cited links
bittorrent.org
bep_0053.rst_post
github.com
Prowlarr/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs at develop · Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers. -...
themoviedb.org
The Movie Database (TMDB)
The Movie Database (TMDB) is a popular, user editable database for movies and TV shows.
thetvdb.com
Welcome - TheTVDB.com
myanimelist.net
MyAnimeList.net - Anime and Manga Database and Community
Welcome to MyAnimeList, the world's most active online anime and manga community and database. Join the online community, create your anime and manga list, read reviews, explore the forums, follow...
Discussion
Connect a key to comment.