aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update-host.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-host.js')
-rwxr-xr-xscripts/update-host.js4
1 files changed, 2 insertions, 2 deletions
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 () {
26 if (err) throw err 26 if (err) throw err
27 27
28 videos.forEach(function (video) { 28 videos.forEach(function (video) {
29 const torrentName = video._id + '.torrent' 29 const torrentName = video.id + '.torrent'
30 const torrentPath = constants.CONFIG.STORAGE.TORRENTS_DIR + torrentName 30 const torrentPath = constants.CONFIG.STORAGE.TORRENTS_DIR + torrentName
31 const filename = video._id + video.extname 31 const filename = video.id + video.extname
32 32
33 const parsed = parseTorrent(fs.readFileSync(torrentPath)) 33 const parsed = parseTorrent(fs.readFileSync(torrentPath))
34 parsed.announce = [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + '/tracker/socket' ] 34 parsed.announce = [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + '/tracker/socket' ]