1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add ability to remove hls/webtorrent files

This commit is contained in:
Chocobozzz 2021-11-17 16:04:53 +01:00
parent 3cfa817672
commit b46cf4b920
No known key found for this signature in database
GPG key ID: 583A612D890159BE
20 changed files with 497 additions and 37 deletions

View file

@ -138,7 +138,7 @@ async function onHlsPlaylistGeneration (video: MVideoFullLight, user: MUser, pay
if (payload.isMaxQuality && CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) {
// Remove webtorrent files if not enabled
for (const file of video.VideoFiles) {
await video.removeFileAndTorrent(file)
await video.removeWebTorrentFileAndTorrent(file)
await file.destroy()
}