diff options
Diffstat (limited to 'server/controllers/api/v1/remoteVideos.js')
-rw-r--r-- | server/controllers/api/v1/remoteVideos.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/v1/remoteVideos.js b/server/controllers/api/v1/remoteVideos.js index 8ff212b7f..7da9f0105 100644 --- a/server/controllers/api/v1/remoteVideos.js +++ b/server/controllers/api/v1/remoteVideos.js | |||
@@ -36,8 +36,8 @@ module.exports = router | |||
36 | // --------------------------------------------------------------------------- | 36 | // --------------------------------------------------------------------------- |
37 | 37 | ||
38 | function addRemoteVideos (req, res, next) { | 38 | function addRemoteVideos (req, res, next) { |
39 | const videos_to_create = req.body.data | 39 | const videosToCreate = req.body.data |
40 | videos.createRemoteVideos(videos_to_create, function (err, remote_videos) { | 40 | videos.createRemoteVideos(videosToCreate, function (err, remoteVideos) { |
41 | if (err) { | 41 | if (err) { |
42 | logger.error('Cannot create remote videos.', { error: err }) | 42 | logger.error('Cannot create remote videos.', { error: err }) |
43 | return next(err) | 43 | return next(err) |
@@ -51,13 +51,13 @@ function removeRemoteVideo (req, res, next) { | |||
51 | const fromUrl = req.body.signature.url | 51 | const fromUrl = req.body.signature.url |
52 | const magnetUris = map(req.body.data, 'magnetUri') | 52 | const magnetUris = map(req.body.data, 'magnetUri') |
53 | 53 | ||
54 | Videos.listFromUrlAndMagnets(fromUrl, magnetUris, function (err, videos_list) { | 54 | Videos.listFromUrlAndMagnets(fromUrl, magnetUris, function (err, videosList) { |
55 | if (err) { | 55 | if (err) { |
56 | logger.error('Cannot list videos from url and magnets.', { error: err }) | 56 | logger.error('Cannot list videos from url and magnets.', { error: err }) |
57 | return next(err) | 57 | return next(err) |
58 | } | 58 | } |
59 | 59 | ||
60 | videos.removeRemoteVideos(videos_list, function (err) { | 60 | videos.removeRemoteVideos(videosList, function (err) { |
61 | if (err) { | 61 | if (err) { |
62 | logger.error('Cannot remove remote videos.', { error: err }) | 62 | logger.error('Cannot remove remote videos.', { error: err }) |
63 | return next(err) | 63 | return next(err) |