diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
commit | b3077e417056f18225957f65419b87de72117fe3 (patch) | |
tree | be00437c83175ca09b184df6fb21ffe149e11ff8 /lib/videos.js | |
parent | c5a8be2b6282d2042e469e1b7c1e7ce8795c026f (diff) | |
download | PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.gz PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.zst PeerTube-b3077e417056f18225957f65419b87de72117fe3.zip |
Standard v6
Diffstat (limited to 'lib/videos.js')
-rw-r--r-- | lib/videos.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/videos.js b/lib/videos.js index 1bb6f2493..0e8143351 100644 --- a/lib/videos.js +++ b/lib/videos.js | |||
@@ -3,12 +3,13 @@ | |||
3 | 3 | ||
4 | var async = require('async') | 4 | var async = require('async') |
5 | var config = require('config') | 5 | var config = require('config') |
6 | var path = require('path') | ||
6 | var webtorrent = require('../lib/webtorrent') | 7 | var webtorrent = require('../lib/webtorrent') |
7 | 8 | ||
8 | var logger = require('../helpers/logger') | 9 | var logger = require('../helpers/logger') |
9 | var Videos = require('../models/videos') | 10 | var Videos = require('../models/videos') |
10 | 11 | ||
11 | var uploadDir = __dirname + '/../' + config.get('storage.uploads') | 12 | var uploadDir = path.join(__dirname, '..', config.get('storage.uploads')) |
12 | 13 | ||
13 | var videos = { | 14 | var videos = { |
14 | seed: seed, | 15 | seed: seed, |