diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-03 09:43:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-06 11:19:16 +0200 |
commit | 516df59b3bbb0218afeda595ee4966800bff4519 (patch) | |
tree | 4687691eeb0bf9c2846b673253c54628409345d1 /server/helpers | |
parent | d7f83948a1af0ef3bed61f83e87e826902c96f7d (diff) | |
download | PeerTube-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')
-rw-r--r-- | server/helpers/youtube-dl.ts | 2 |
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 | ||
32 | function downloadYoutubeDLVideo (url: string) { | 32 | function 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) |