seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit 464a4ea5f1bc95923b24f3e18af0c81440e98f10
parent ea3be17650396b0a506c4a753a55473817d6cece
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Sat,  1 Jul 2017 12:27:07 +0100

updating README

Diffstat:
MREADME.md | 25++++++++++++++++++-------
Mapp.js | 1-
2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -22,15 +22,26 @@ Seed the data using mongo-import tool. mongoimport --db seedlinux --collection torrents --drop --file ./data/dataset.json ``` +Torrents Model + ```json { - "name" : "", - "info_hash" : "", - "magnetic_link" : "", - "seeders" : , - "leechers" : , - "comment" : "", - "added" : "" + name: {type: String, required: true, max: 100}, + hash: {type: String, required: true, max: 20}, + created: {type: String}, + comment: {type: String, max: 100}, + announce: [ + {type: String} + ], + files: [{ + path: String, + name: String, + length: Number, + offset: Number + }], + magneturi: {type: String}, + leechers: {type: Number}, + seeders: {type: Number}, } ``` diff --git a/app.js b/app.js @@ -43,7 +43,6 @@ app.use(function(req, res, next) { next(err); }); - app.use(function(err, req, res, next) { res.locals.message = err.message; res.locals.error = req.app.get('env') === 'development' ? err : {};