aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-24 16:48:05 +0100
committerChocobozzz <me@florianbigard.com>2020-01-24 16:48:05 +0100
commitffc65cbd2a3d8b0b41243baec9936272592137e3 (patch)
tree1d48a71e08d9213683aa6650d69645c676afeb6a /shared
parentb40eed8b09336ce3a64a0cc99a467e487ce0ef94 (diff)
downloadPeerTube-ffc65cbd2a3d8b0b41243baec9936272592137e3.tar.gz
PeerTube-ffc65cbd2a3d8b0b41243baec9936272592137e3.tar.zst
PeerTube-ffc65cbd2a3d8b0b41243baec9936272592137e3.zip
Remove HLS torrents
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index d1ac48292..7a77a03ad 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -465,7 +465,7 @@ function rateVideo (url: string, accessToken: string, id: number, rating: string
465function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolution: number) { 465function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolution: number) {
466 return new Promise<any>((res, rej) => { 466 return new Promise<any>((res, rej) => {
467 const torrentName = videoUUID + '-' + resolution + '.torrent' 467 const torrentName = videoUUID + '-' + resolution + '.torrent'
468 const torrentPath = join(root(), 'test' + server.serverNumber, 'torrents', torrentName) 468 const torrentPath = join(root(), 'test' + server.internalServerNumber, 'torrents', torrentName)
469 readFile(torrentPath, (err, data) => { 469 readFile(torrentPath, (err, data) => {
470 if (err) return rej(err) 470 if (err) return rej(err)
471 471