From edc7464f0bc5ace47f5de6f2b29c54b60808e8dc Mon Sep 17 00:00:00 2001 From: OldHawk Date: Mon, 4 Dec 2017 10:28:14 +0800 Subject: [PATCH] fix(torrents): fixed torrent all files included issues --- .../torrents/server/controllers/torrents.server.controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/torrents/server/controllers/torrents.server.controller.js b/modules/torrents/server/controllers/torrents.server.controller.js index 8b30f739..d3a549fb 100644 --- a/modules/torrents/server/controllers/torrents.server.controller.js +++ b/modules/torrents/server/controllers/torrents.server.controller.js @@ -1863,6 +1863,7 @@ exports.torrentByID = function (req, res, next, id) { callback(err); } else { var mdata = torrent_data.metadata; + torrent._all_files = []; if (mdata.info.files) { mdata.info.files.forEach(function (f) {