aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-03 09:43:00 +0200
committerChocobozzz <me@florianbigard.com>2018-08-06 11:19:16 +0200
commit516df59b3bbb0218afeda595ee4966800bff4519 (patch)
tree4687691eeb0bf9c2846b673253c54628409345d1 /server/helpers/youtube-dl.ts
parentd7f83948a1af0ef3bed61f83e87e826902c96f7d (diff)
downloadPeerTube-516df59b3bbb0218afeda595ee4966800bff4519.tar.gz
PeerTube-516df59b3bbb0218afeda595ee4966800bff4519.tar.zst
PeerTube-516df59b3bbb0218afeda595ee4966800bff4519.zip
Remove ability to delete video imports
Users should remove the linked video instead
Diffstat (limited to 'server/helpers/youtube-dl.ts')
-rw-r--r--server/helpers/youtube-dl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts
index 43156bb22..ff1fbf59f 100644
--- a/server/helpers/youtube-dl.ts
+++ b/server/helpers/youtube-dl.ts
@@ -30,7 +30,7 @@ function getYoutubeDLInfo (url: string): Promise<YoutubeDLInfo> {
30} 30}
31 31
32function downloadYoutubeDLVideo (url: string) { 32function downloadYoutubeDLVideo (url: string) {
33 const hash = crypto.createHash('sha256').update(url).digest('base64') 33 const hash = crypto.createHash('sha256').update(url).digest('hex')
34 const path = join(CONFIG.STORAGE.VIDEOS_DIR, hash + '-import.mp4') 34 const path = join(CONFIG.STORAGE.VIDEOS_DIR, hash + '-import.mp4')
35 35
36 logger.info('Importing video %s', url) 36 logger.info('Importing video %s', url)