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

Add url field in caption and use it for thumbnails

This commit is contained in:
Chocobozzz 2020-01-30 11:53:38 +01:00
parent 215304eaa0
commit ca6d36227a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
20 changed files with 160 additions and 82 deletions

View file

@ -199,6 +199,8 @@ function sha1 (str: string | Buffer, encoding: HexBase64Latin1Encoding = 'hex')
return createHash('sha1').update(str).digest(encoding)
}
function execShell (command: string, options?: ExecOptions) {
return new Promise<{ err?: Error, stdout: string, stderr: string }>((res, rej) => {
exec(command, options, (err, stdout, stderr) => {