Correctly remove torrents with HLS only

This commit is contained in:
Chocobozzz 2021-02-01 11:22:43 +01:00
parent 7448551fe5
commit 7e3592d70b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -130,6 +130,7 @@ async function onHlsPlaylistGeneration (video: MVideoFullLight, resolution: numb
if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && video.hasWebTorrentFiles() && maxQualityFile.resolution === resolution) {
for (const file of video.VideoFiles) {
await video.removeFile(file)
await video.removeTorrent(file)
await file.destroy()
}