| updating README - seedlinux - Torrent indexing tool opensource torrents with sh… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 3f4d95265a14b9c72d44265c25479d1b9b5e29f9 | |
| parent c863787a0b97b419366e6a37440cbcad9402b27a | |
| Author: Jay Scott <[email protected]> | |
| Date: Sat, 1 Jul 2017 12:27:07 +0100 | |
| updating README | |
| Diffstat: | |
| M README.md | 25 ++++++++++++++++++------- | |
| M app.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.… | |
| ``` | |
| +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 : {}; |