mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00

Deprecate: * `path` and `url` of `ActorImage` (used to represent account/channel avatars/banners) in favour of `fileUrl` * `path` of `AvatarInfo` (used in notifications) in favour of `fileUrl` * `captionPath` of `VideoCaption` in favour of `fileUrl` * `storyboardPath` of `Storyboard` in favour of `fileUrl`
26 lines
790 B
TypeScript
26 lines
790 B
TypeScript
import { join } from 'path'
|
|
import { MStreamingPlaylistVideo } from '@server/types/models/index.js'
|
|
|
|
export function generateHLSObjectStorageKey (playlist: MStreamingPlaylistVideo, filename: string) {
|
|
return join(generateHLSObjectBaseStorageKey(playlist), filename)
|
|
}
|
|
|
|
export function generateHLSObjectBaseStorageKey (playlist: MStreamingPlaylistVideo) {
|
|
return join(playlist.getStringType(), playlist.Video.uuid)
|
|
}
|
|
|
|
export function generateWebVideoObjectStorageKey (filename: string) {
|
|
return filename
|
|
}
|
|
|
|
export function generateOriginalVideoObjectStorageKey (filename: string) {
|
|
return filename
|
|
}
|
|
|
|
export function generateCaptionObjectStorageKey (filename: string) {
|
|
return filename
|
|
}
|
|
|
|
export function generateUserExportObjectStorageKey (filename: string) {
|
|
return filename
|
|
}
|