mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Re enable the "seed all videos" function
This commit is contained in:
parent
00057e85a7
commit
907e9510c2
2 changed files with 13 additions and 4 deletions
|
@ -37,6 +37,7 @@ const routes = require('./server/controllers')
|
|||
const utils = require('./server/helpers/utils')
|
||||
const webtorrent = require('./server/lib/webtorrent')
|
||||
const Request = mongoose.model('Request')
|
||||
const Video = mongoose.model('Video')
|
||||
|
||||
// Get configurations
|
||||
const port = config.get('listen.port')
|
||||
|
@ -139,11 +140,13 @@ installer.installApplication(function (err) {
|
|||
// Activate the pool requests
|
||||
Request.activate()
|
||||
|
||||
// videos.seedAllExisting(function () {
|
||||
Video.seedAllExisting(function (err) {
|
||||
if (err) throw err
|
||||
|
||||
logger.info('Seeded all the videos')
|
||||
logger.info('Server listening on port %d', port)
|
||||
app.emit('ready')
|
||||
// })
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue