aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers/video-transcoding.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-01 11:22:43 +0100
committerChocobozzz <me@florianbigard.com>2021-02-01 11:23:12 +0100
commit7e3592d70bb797cb38a06283a7d5b0738deb1eae (patch)
tree3197b8e47ad41d4094691f6dbe7fdb615dda7817 /server/lib/job-queue/handlers/video-transcoding.ts
parent7448551fe5c111fcc7b7448ad864fb15a5c8d87f (diff)
downloadPeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.tar.gz
PeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.tar.zst
PeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.zip
Correctly remove torrents with HLS only
Diffstat (limited to 'server/lib/job-queue/handlers/video-transcoding.ts')
-rw-r--r--server/lib/job-queue/handlers/video-transcoding.ts1
1 files changed, 1 insertions, 0 deletions
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
130 if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && video.hasWebTorrentFiles() && maxQualityFile.resolution === resolution) { 130 if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && video.hasWebTorrentFiles() && maxQualityFile.resolution === resolution) {
131 for (const file of video.VideoFiles) { 131 for (const file of video.VideoFiles) {
132 await video.removeFile(file) 132 await video.removeFile(file)
133 await video.removeTorrent(file)
133 await file.destroy() 134 await file.destroy()
134 } 135 }
135 136