Add ability to disable webtorrent

In favour of HLS
This commit is contained in:
Chocobozzz 2019-11-15 15:06:03 +01:00
parent 14981d7331
commit d7a25329f9
No known key found for this signature in database
GPG key ID: 583A612D890159BE
80 changed files with 1189 additions and 540 deletions

View file

@ -134,9 +134,9 @@ async function doesRedundancyExist (file: string) {
return true
}
const videoFile = video.getFile(resolution)
const videoFile = video.getWebTorrentFile(resolution)
if (!videoFile) {
console.error('Cannot find file of video %s - %d', video.url, resolution)
console.error('Cannot find webtorrent file of video %s - %d', video.url, resolution)
return true
}