← Todos los NIPs

NIP-35

Torrents

BorradorEventos

Un índice de torrents buscable en Nostr: el kind 2003 enumera el info hash, los archivos, los trackers y los ids de catálogo (IMDb, TMDB…) de un torrent para que cualquiera pueda construir el enlace magnet. En Nostr no se guardan archivos torrent.

De un vistazo

Estado
En uso, pero todavía puede cambiar.
Kinds
Tags
  • file
  • i
  • t
  • title
  • tracker
  • x
Último cambio
3 sept 2024

Pruébalo

Edita el formulario o el JSON: ambos se mantienen sincronizados, la insignia indica si el resultado es válido y, al tocar cualquier campo, se explica qué hace.

Qué construir
Ejemplos
Válido 1 nota

Aún sin firmar · Solo claves de demo. Las claves secretas de estos personajes son públicas a propósito.

Formulario
1 ene 2025, 0:00 UTC

Contenido

Una descripción larga y preformateada del torrent.

Tags

  1. title Recomendado

    Título del torrent.

  2. x Obligatorio

    Info hash v1 de BitTorrent. Obligatorio.

  3. file Recomendado

    Un archivo dentro del torrent.

  4. file Recomendado

    Un archivo dentro del torrent.

  5. tracker Opcional

    Un tracker que usar para este torrent.

  6. i Opcional

    Una referencia a un catálogo o categoría.

  7. i Opcional

    Una referencia a un catálogo o categoría.

  8. i Opcional

    Una referencia a un catálogo o categoría.

  9. i Opcional

    Una referencia a un catálogo o categoría.

  10. t Opcional

    Una categoría general para explorar.

  11. t Opcional

    Una categoría general para explorar.

Añadir tag

Cómo funciona este NIP

Paso 1 de 5

El info hash es el torrent

El tag x contiene el info hash v1 de BitTorrent. Es todo lo que necesita un cliente para construir magnet:?xt=urn:btih:<hash> y empezar a descargar de los pares.

En el curso

Ningún capítulo del curso cubre este NIP todavía. El editor de arriba es la forma más rápida de empezar.

Se basa en

Ver también

Especificación

El texto de las especificaciones se cita en inglés del repositorio nostr-protocol/nips. Nuestras explicaciones y la interfaz están traducidas. Código fuente en GitHub en el commit 0046368

Leer la especificación327 palabras, citadas del repositorio en el commit 0046368.

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 link magnet:?xt=urn:btih:HASH
  • file: A file entry inside the torrent, including the full path ie. info/example.txt
  • tracker: (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 the newznab category in a best effort approach.
  • newznab: The category ID from newznab
  • tmdb: 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:693134 maps to themoviedb.org/movie/693134
  • ttvdb:movie:290272 maps to thetvdb.com/movies/dune-part-two
  • mal:anime:9253 maps to myanimelist.net/anime/9253
  • mal:manga:17517 maps to myanimelist.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

  1. dtan.xyz
  2. nostrudel.ninja