aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-21 11:33:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-21 11:33:31 +0200
commitb3d92510157f9066ea7fa82c303bea7a10eb55b6 (patch)
treeb5879aae311680ad0014a2a90f82b5ca180a836a /server/models/video.js
parent80a6c9e76fda57f01e37fe4620771ae70738a211 (diff)
downloadPeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.gz
PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.zst
PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.zip
Server: Uploads -> Videos
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video.js b/server/models/video.js
index 1feefe24f..05c4f51cb 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -94,7 +94,7 @@ VideoSchema.pre('save', function (next) {
94 const tasks = [] 94 const tasks = []
95 95
96 if (video.isOwned()) { 96 if (video.isOwned()) {
97 const videoPath = pathUtils.join(constants.CONFIG.STORAGE.UPLOAD_DIR, video.filename) 97 const videoPath = pathUtils.join(constants.CONFIG.STORAGE.VIDEOS_DIR, video.filename)
98 this.podUrl = constants.CONFIG.WEBSERVER.URL 98 this.podUrl = constants.CONFIG.WEBSERVER.URL
99 99
100 tasks.push( 100 tasks.push(
@@ -258,7 +258,7 @@ function removeThumbnail (video, callback) {
258} 258}
259 259
260function removeFile (video, callback) { 260function removeFile (video, callback) {
261 fs.unlink(constants.CONFIG.STORAGE.UPLOAD_DIR + video.filename, callback) 261 fs.unlink(constants.CONFIG.STORAGE.VIDEOS_DIR + video.filename, callback)
262} 262}
263 263
264// Maybe the torrent is not seeded, but we catch the error to don't stop the removing process 264// Maybe the torrent is not seeded, but we catch the error to don't stop the removing process