diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-11 13:47:50 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:29:26 +0100 |
commit | 558d7c2385d8a152a94140eed753f511e90986d7 (patch) | |
tree | f40c641f2fdca7a912f70a1634081fe7355aa205 /server/controllers/api/remote.js | |
parent | 6a94a109b4b89a97fe7bfeded3125fb7aad2ac3b (diff) | |
download | PeerTube-558d7c2385d8a152a94140eed753f511e90986d7.tar.gz PeerTube-558d7c2385d8a152a94140eed753f511e90986d7.tar.zst PeerTube-558d7c2385d8a152a94140eed753f511e90986d7.zip |
Server: use _id for image and video files. Add remoteId field
Diffstat (limited to 'server/controllers/api/remote.js')
-rw-r--r-- | server/controllers/api/remote.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
64 | 64 | ||
65 | function removeRemoteVideo (videoToRemoveData, fromUrl, callback) { | 65 | function removeRemoteVideo (videoToRemoveData, fromUrl, callback) { |
66 | // We need the list because we have to remove some other stuffs (thumbnail etc) | 66 | // We need the list because we have to remove some other stuffs (thumbnail etc) |
67 | Video.listByUrlAndMagnet(fromUrl, videoToRemoveData.magnetUri, function (err, videosList) { | 67 | Video.listByUrlAndRemoteId(fromUrl, videoToRemoveData.remoteId, function (err, videosList) { |
68 | if (err) { | 68 | if (err) { |
69 | logger.error('Cannot list videos from url and magnets.', { error: err }) | 69 | logger.error('Cannot list videos from url and magnets.', { error: err }) |
70 | return callback(err) | 70 | return callback(err) |