updating README - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 3f4d95265a14b9c72d44265c25479d1b9b5e29f9
(DIR) parent c863787a0b97b419366e6a37440cbcad9402b27a
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
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(-)
---
(DIR) 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},
}
```
(DIR) 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 : {};