diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-01 11:22:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-01 11:23:12 +0100 |
commit | 7e3592d70bb797cb38a06283a7d5b0738deb1eae (patch) | |
tree | 3197b8e47ad41d4094691f6dbe7fdb615dda7817 | |
parent | 7448551fe5c111fcc7b7448ad864fb15a5c8d87f (diff) | |
download | PeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.tar.gz PeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.tar.zst PeerTube-7e3592d70bb797cb38a06283a7d5b0738deb1eae.zip |
Correctly remove torrents with HLS only
-rw-r--r-- | server/lib/job-queue/handlers/video-transcoding.ts | 1 |
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 | ||