From 7e3592d70bb797cb38a06283a7d5b0738deb1eae Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Feb 2021 11:22:43 +0100 Subject: Correctly remove torrents with HLS only --- server/lib/job-queue/handlers/video-transcoding.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/lib') diff --git a/server/lib/job-queue/handlers/video-transcoding.ts b/server/lib/job-queue/handlers/video-transcoding.ts index 9c0b1d1f1..8f88f0a8a 100644 --- a/server/lib/job-queue/handlers/video-transcoding.ts +++ b/server/lib/job-queue/handlers/video-transcoding.ts @@ -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() } -- cgit v1.2.3