aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
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