mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Remove deprecated transcoding job names
This commit is contained in:
parent
45570e9397
commit
e83d06a702
1 changed files with 1 additions and 12 deletions
|
@ -28,21 +28,10 @@ import { JobQueue } from '../job-queue'
|
|||
|
||||
type HandlerFunction = (job: Bull.Job, payload: VideoTranscodingPayload, video: MVideoFullLight, user: MUser) => Promise<any>
|
||||
|
||||
const handlers: { [ id: string ]: HandlerFunction } = {
|
||||
// Deprecated, introduced in 3.1
|
||||
'hls': handleHLSJob,
|
||||
const handlers: { [ id in VideoTranscodingPayload['type'] ]: HandlerFunction } = {
|
||||
'new-resolution-to-hls': handleHLSJob,
|
||||
|
||||
// Deprecated, introduced in 3.1
|
||||
'new-resolution': handleNewWebTorrentResolutionJob,
|
||||
'new-resolution-to-webtorrent': handleNewWebTorrentResolutionJob,
|
||||
|
||||
// Deprecated, introduced in 3.1
|
||||
'merge-audio': handleWebTorrentMergeAudioJob,
|
||||
'merge-audio-to-webtorrent': handleWebTorrentMergeAudioJob,
|
||||
|
||||
// Deprecated, introduced in 3.1
|
||||
'optimize': handleWebTorrentOptimizeJob,
|
||||
'optimize-to-webtorrent': handleWebTorrentOptimizeJob
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue