From 9cc99d7b569765412c9898cfd5452dba5ee5e4b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Feb 2017 20:34:01 +0100 Subject: Fix update host script --- scripts/update-host.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/update-host.js b/scripts/update-host.js index 91051e68b..18e35386c 100755 --- a/scripts/update-host.js +++ b/scripts/update-host.js @@ -26,9 +26,9 @@ db.init(true, function () { if (err) throw err videos.forEach(function (video) { - const torrentName = video._id + '.torrent' + const torrentName = video.id + '.torrent' const torrentPath = constants.CONFIG.STORAGE.TORRENTS_DIR + torrentName - const filename = video._id + video.extname + const filename = video.id + video.extname const parsed = parseTorrent(fs.readFileSync(torrentPath)) parsed.announce = [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + '/tracker/socket' ] -- cgit v1.2.3