From 558d7c2385d8a152a94140eed753f511e90986d7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Nov 2016 13:47:50 +0100 Subject: Server: use _id for image and video files. Add remoteId field --- server/controllers/api/remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/remote.js') diff --git a/server/controllers/api/remote.js b/server/controllers/api/remote.js index 17b1d07c4..94808693d 100644 --- a/server/controllers/api/remote.js +++ b/server/controllers/api/remote.js @@ -64,7 +64,7 @@ function addRemoteVideo (videoToCreateData, callback) { function removeRemoteVideo (videoToRemoveData, fromUrl, callback) { // We need the list because we have to remove some other stuffs (thumbnail etc) - Video.listByUrlAndMagnet(fromUrl, videoToRemoveData.magnetUri, function (err, videosList) { + Video.listByUrlAndRemoteId(fromUrl, videoToRemoveData.remoteId, function (err, videosList) { if (err) { logger.error('Cannot list videos from url and magnets.', { error: err }) return callback(err) -- cgit v1.2.3