mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 21:09:17 -06:00
Correctly remove torrents with HLS only
This commit is contained in:
parent
7448551fe5
commit
7e3592d70b
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user