mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Support short uuid for GET video/playlist
This commit is contained in:
parent
62ddc31a9e
commit
d4a8e7a65f
94 changed files with 1029 additions and 673 deletions
|
@ -1,12 +1,12 @@
|
|||
import { copy, readFile, remove, rename } from 'fs-extra'
|
||||
import * as Jimp from 'jimp'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { getLowercaseExtension } from './core-utils'
|
||||
import { convertWebPToJPG, processGIF } from './ffmpeg-utils'
|
||||
import { logger } from './logger'
|
||||
import { buildUUID } from './uuid'
|
||||
|
||||
function generateImageFilename (extension = '.jpg') {
|
||||
return uuidv4() + extension
|
||||
return buildUUID() + extension
|
||||
}
|
||||
|
||||
async function processImage (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue