watershed is a home automation tool for torrenting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
grumbulon ce4f52503d API 1 week ago
lib API 1 week ago
node_modules Working on ejs stuff 1 month ago
src API 1 week ago
.eslintrc.json Working on ejs stuff 1 month ago
.gitignore license and eslint 1 month ago
LICENSE license and eslint 1 month ago
package-lock.json Working on ejs stuff 1 month ago
package.json Working on ejs stuff 1 month ago
readme.md Readme stuff 1 month ago

readme.md

Watershed

What is this?

It is like Sonarr but node/express js

API

Currently the API can take three query strings: media, site, and resolution.

A typical API call looks like http://localhost:8000/api/v1/search?media=%22Spy%20X%20Family%22&site=nyaa.si&resolution=1080

For nyaa.si this will return JSON with the following information

  {
    "title": "Spy x Family - 01 - 1080p WEB HEVC -NanDesuKa (B-Global).mkv",
    "seeders": "13",
    "filesize": "661.1 MiB",
    "magnetLink": "magnet:?xt=urn:btih:31b76297f72a4f8956f2fd712a55bed3303cbcb0&dn=Spy%20x%20Family%20-%2001%20-%201080p%20WEB%20HEVC%20-NanDesuKa%20%28B-Global%29.mkv&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce"
  }

For yts.* sites as of now it will only return title and torrents.

The yts.* api does not provide magnet links so they will need to be built out later on from within watershed, they do provide a way to create the magnet links so that's cool I guess :^]

Sample query http://localhost:8000/api/v1/search?media="500%20days%20of%20summer"&site=yts.mx&resolution=1080

[
  {
    "title": "500 Days of Summer",
    "torrents": [
      {
        "url": "https://yts.torrentbay.to/torrent/download/B24513AE3F535C3457110A062B1D29D4DD51DB0E",
        "hash": "B24513AE3F535C3457110A062B1D29D4DD51DB0E",
        "quality": "720p",
        "type": "bluray",
        "seeds": 41,
        "peers": 7,
        "size": "873.39 MB",
        "size_bytes": 915815793,
        "date_uploaded": "2022-04-05 14:19:54",
        "date_uploaded_unix": 1649161194
      },
      {
        "url": "https://yts.torrentbay.to/torrent/download/BB3635D9F4C5E13FD63C863BE5D24651F66140C6",
        "hash": "BB3635D9F4C5E13FD63C863BE5D24651F66140C6",
        "quality": "1080p",
        "type": "bluray",
        "seeds": 57,
        "peers": 11,
        "size": "1.75 GB",
        "size_bytes": 1879048192,
        "date_uploaded": "2022-04-05 15:23:42",
        "date_uploaded_unix": 1649165022
      }
    ]
  }
]