Correctly remove torrents with HLS only

pull/3679/head
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
1 changed files with 1 additions and 0 deletions

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()
}