ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix update host script
Chocobozzz9cc99d7b5697
diff --git a/scripts/update-host.js b/scripts/update-host.jsindex 91051e68b4..18e35386c9 100755--- a/scripts/update-host.js+++ b/scripts/update-host.js@@ -26,9 +26,9 @@ db.init(true, function () {if (err) throw errvideos.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.extnameconst parsed = parseTorrent(fs.readFileSync(torrentPath))parsed.announce = [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + '/tracker/socket' ]diff --git a/server/models/video.js b/server/models/video.jsindex 742150d69e..d0fd61eb49 100644--- a/server/models/video.js+++ b/server/models/video.js@@ -414,7 +414,7 @@ function getDurationFromFile (videoPath, callback) {}function list (callback) {- return this.find().asCallback()+ return this.findAll().asCallback(callback)}function listForApi (start, count, sort, callback) {