Remove HLS torrents
[oweals/peertube.git] / server / models / redundancy / video-redundancy.ts
index 77f83d8aa074df538ef557de708ef3c2b295cc2a..8c9a7eabf8fa1ba3148bf4a87a6ff7e85ba7e444 100644 (file)
@@ -160,7 +160,7 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> {
       const videoUUID = videoStreamingPlaylist.Video.uuid
       logger.info('Removing duplicated video streaming playlist %s.', videoUUID)
 
-      videoStreamingPlaylist.Video.removeStreamingPlaylist(true)
+      videoStreamingPlaylist.Video.removeStreamingPlaylistFiles(videoStreamingPlaylist, true)
                .catch(err => logger.error('Cannot delete video streaming playlist files of %s.', videoUUID, { err }))
     }