/torrent-cache

Simple torrent cache application

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Torrent Cache

Build Status

Simple application to cache torrents written in Go.

Requirements

archivemount command is not really required but start and stop won't work without it. They also expect a file named cached.tar.gz. Mount point is $HOME/.torrent_cache.

Installing

Run

    ./setup

Api

Current version is v1. Api URL is http://{hostname}/api/{version}/{torrent_infohash}.

  • Cache torrent submitting a POST request with a form containing the file with key torrent. Returns torrent's infohash.
  • To retrieve cached torrents submit a GET request to api URL
  • Deletion is implemented but disabled.