From 3a4992633ee62d5edfbb484d9c6bcb3cf158489d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 Jul 2023 14:34:36 +0200 Subject: Migrate server to ESM Sorry for the very big commit that may lead to git log issues and merge conflicts, but it's a major step forward: * Server can be faster at startup because imports() are async and we can easily lazy import big modules * Angular doesn't seem to support ES import (with .js extension), so we had to correctly organize peertube into a monorepo: * Use yarn workspace feature * Use typescript reference projects for dependencies * Shared projects have been moved into "packages", each one is now a node module (with a dedicated package.json/tsconfig.json) * server/tools have been moved into apps/ and is now a dedicated app bundled and published on NPM so users don't have to build peertube cli tools manually * server/tests have been moved into packages/ so we don't compile them every time we want to run the server * Use isolatedModule option: * Had to move from const enum to const (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums) * Had to explictely specify "type" imports when used in decorators * Prefer tsx (that uses esbuild under the hood) instead of ts-node to load typescript files (tests with mocha or scripts): * To reduce test complexity as esbuild doesn't support decorator metadata, we only test server files that do not import server models * We still build tests files into js files for a faster CI * Remove unmaintained peertube CLI import script * Removed some barrels to speed up execution (less imports) --- server/lib/transcoding/shared/ffmpeg-builder.ts | 18 -- server/lib/transcoding/shared/index.ts | 2 - .../shared/job-builders/abstract-job-builder.ts | 21 -- .../lib/transcoding/shared/job-builders/index.ts | 2 - .../job-builders/transcoding-job-queue-builder.ts | 322 --------------------- .../job-builders/transcoding-runner-job-builder.ts | 196 ------------- 6 files changed, 561 deletions(-) delete mode 100644 server/lib/transcoding/shared/ffmpeg-builder.ts delete mode 100644 server/lib/transcoding/shared/index.ts delete mode 100644 server/lib/transcoding/shared/job-builders/abstract-job-builder.ts delete mode 100644 server/lib/transcoding/shared/job-builders/index.ts delete mode 100644 server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts delete mode 100644 server/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts (limited to 'server/lib/transcoding/shared') diff --git a/server/lib/transcoding/shared/ffmpeg-builder.ts b/server/lib/transcoding/shared/ffmpeg-builder.ts deleted file mode 100644 index 441445ec4..000000000 --- a/server/lib/transcoding/shared/ffmpeg-builder.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Job } from 'bullmq' -import { getFFmpegCommandWrapperOptions } from '@server/helpers/ffmpeg' -import { logger } from '@server/helpers/logger' -import { FFmpegVOD } from '@shared/ffmpeg' -import { VideoTranscodingProfilesManager } from '../default-transcoding-profiles' - -export function buildFFmpegVOD (job?: Job) { - return new FFmpegVOD({ - ...getFFmpegCommandWrapperOptions('vod', VideoTranscodingProfilesManager.Instance.getAvailableEncoders()), - - updateJobProgress: progress => { - if (!job) return - - job.updateProgress(progress) - .catch(err => logger.error('Cannot update ffmpeg job progress', { err })) - } - }) -} diff --git a/server/lib/transcoding/shared/index.ts b/server/lib/transcoding/shared/index.ts deleted file mode 100644 index f0b45bcbb..000000000 --- a/server/lib/transcoding/shared/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './job-builders' -export * from './ffmpeg-builder' diff --git a/server/lib/transcoding/shared/job-builders/abstract-job-builder.ts b/server/lib/transcoding/shared/job-builders/abstract-job-builder.ts deleted file mode 100644 index 15fc814ae..000000000 --- a/server/lib/transcoding/shared/job-builders/abstract-job-builder.ts +++ /dev/null @@ -1,21 +0,0 @@ - -import { MUserId, MVideoFile, MVideoFullLight } from '@server/types/models' - -export abstract class AbstractJobBuilder { - - abstract createOptimizeOrMergeAudioJobs (options: { - video: MVideoFullLight - videoFile: MVideoFile - isNewVideo: boolean - user: MUserId - videoFileAlreadyLocked: boolean - }): Promise - - abstract createTranscodingJobs (options: { - transcodingType: 'hls' | 'webtorrent' | 'web-video' // TODO: remove webtorrent in v7 - video: MVideoFullLight - resolutions: number[] - isNewVideo: boolean - user: MUserId | null - }): Promise -} diff --git a/server/lib/transcoding/shared/job-builders/index.ts b/server/lib/transcoding/shared/job-builders/index.ts deleted file mode 100644 index 9b1c82adf..000000000 --- a/server/lib/transcoding/shared/job-builders/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './transcoding-job-queue-builder' -export * from './transcoding-runner-job-builder' diff --git a/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts b/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts deleted file mode 100644 index 0505c2b2f..000000000 --- a/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts +++ /dev/null @@ -1,322 +0,0 @@ -import Bluebird from 'bluebird' -import { computeOutputFPS } from '@server/helpers/ffmpeg' -import { logger } from '@server/helpers/logger' -import { CONFIG } from '@server/initializers/config' -import { DEFAULT_AUDIO_RESOLUTION, VIDEO_TRANSCODING_FPS } from '@server/initializers/constants' -import { CreateJobArgument, JobQueue } from '@server/lib/job-queue' -import { Hooks } from '@server/lib/plugins/hooks' -import { VideoPathManager } from '@server/lib/video-path-manager' -import { VideoJobInfoModel } from '@server/models/video/video-job-info' -import { MUserId, MVideoFile, MVideoFullLight, MVideoWithFileThumbnail } from '@server/types/models' -import { ffprobePromise, getVideoStreamDimensionsInfo, getVideoStreamFPS, hasAudioStream, isAudioFile } from '@shared/ffmpeg' -import { - HLSTranscodingPayload, - MergeAudioTranscodingPayload, - NewWebVideoResolutionTranscodingPayload, - OptimizeTranscodingPayload, - VideoTranscodingPayload -} from '@shared/models' -import { getTranscodingJobPriority } from '../../transcoding-priority' -import { canDoQuickTranscode } from '../../transcoding-quick-transcode' -import { buildOriginalFileResolution, computeResolutionsToTranscode } from '../../transcoding-resolutions' -import { AbstractJobBuilder } from './abstract-job-builder' - -export class TranscodingJobQueueBuilder extends AbstractJobBuilder { - - async createOptimizeOrMergeAudioJobs (options: { - video: MVideoFullLight - videoFile: MVideoFile - isNewVideo: boolean - user: MUserId - videoFileAlreadyLocked: boolean - }) { - const { video, videoFile, isNewVideo, user, videoFileAlreadyLocked } = options - - let mergeOrOptimizePayload: MergeAudioTranscodingPayload | OptimizeTranscodingPayload - let nextTranscodingSequentialJobPayloads: (NewWebVideoResolutionTranscodingPayload | HLSTranscodingPayload)[][] = [] - - const mutexReleaser = videoFileAlreadyLocked - ? () => {} - : await VideoPathManager.Instance.lockFiles(video.uuid) - - try { - await video.reload() - await videoFile.reload() - - await VideoPathManager.Instance.makeAvailableVideoFile(videoFile.withVideoOrPlaylist(video), async videoFilePath => { - const probe = await ffprobePromise(videoFilePath) - - const { resolution } = await getVideoStreamDimensionsInfo(videoFilePath, probe) - const hasAudio = await hasAudioStream(videoFilePath, probe) - const quickTranscode = await canDoQuickTranscode(videoFilePath, probe) - const inputFPS = videoFile.isAudio() - ? VIDEO_TRANSCODING_FPS.AUDIO_MERGE // The first transcoding job will transcode to this FPS value - : await getVideoStreamFPS(videoFilePath, probe) - - const maxResolution = await isAudioFile(videoFilePath, probe) - ? DEFAULT_AUDIO_RESOLUTION - : buildOriginalFileResolution(resolution) - - if (CONFIG.TRANSCODING.HLS.ENABLED === true) { - nextTranscodingSequentialJobPayloads.push([ - this.buildHLSJobPayload({ - deleteWebVideoFiles: CONFIG.TRANSCODING.WEB_VIDEOS.ENABLED === false, - - // We had some issues with a web video quick transcoded while producing a HLS version of it - copyCodecs: !quickTranscode, - - resolution: maxResolution, - fps: computeOutputFPS({ inputFPS, resolution: maxResolution }), - videoUUID: video.uuid, - isNewVideo - }) - ]) - } - - const lowerResolutionJobPayloads = await this.buildLowerResolutionJobPayloads({ - video, - inputVideoResolution: maxResolution, - inputVideoFPS: inputFPS, - hasAudio, - isNewVideo - }) - - nextTranscodingSequentialJobPayloads = [ ...nextTranscodingSequentialJobPayloads, ...lowerResolutionJobPayloads ] - - const hasChildren = nextTranscodingSequentialJobPayloads.length !== 0 - mergeOrOptimizePayload = videoFile.isAudio() - ? this.buildMergeAudioPayload({ videoUUID: video.uuid, isNewVideo, hasChildren }) - : this.buildOptimizePayload({ videoUUID: video.uuid, isNewVideo, quickTranscode, hasChildren }) - }) - } finally { - mutexReleaser() - } - - const nextTranscodingSequentialJobs = await Bluebird.mapSeries(nextTranscodingSequentialJobPayloads, payloads => { - return Bluebird.mapSeries(payloads, payload => { - return this.buildTranscodingJob({ payload, user }) - }) - }) - - const transcodingJobBuilderJob: CreateJobArgument = { - type: 'transcoding-job-builder', - payload: { - videoUUID: video.uuid, - sequentialJobs: nextTranscodingSequentialJobs - } - } - - const mergeOrOptimizeJob = await this.buildTranscodingJob({ payload: mergeOrOptimizePayload, user }) - - await JobQueue.Instance.createSequentialJobFlow(...[ mergeOrOptimizeJob, transcodingJobBuilderJob ]) - - await VideoJobInfoModel.increaseOrCreate(video.uuid, 'pendingTranscode') - } - - // --------------------------------------------------------------------------- - - async createTranscodingJobs (options: { - transcodingType: 'hls' | 'webtorrent' | 'web-video' // TODO: remove webtorrent in v7 - video: MVideoFullLight - resolutions: number[] - isNewVideo: boolean - user: MUserId | null - }) { - const { video, transcodingType, resolutions, isNewVideo } = options - - const maxResolution = Math.max(...resolutions) - const childrenResolutions = resolutions.filter(r => r !== maxResolution) - - logger.info('Manually creating transcoding jobs for %s.', transcodingType, { childrenResolutions, maxResolution }) - - const { fps: inputFPS } = await video.probeMaxQualityFile() - - const children = childrenResolutions.map(resolution => { - const fps = computeOutputFPS({ inputFPS, resolution }) - - if (transcodingType === 'hls') { - return this.buildHLSJobPayload({ videoUUID: video.uuid, resolution, fps, isNewVideo }) - } - - if (transcodingType === 'webtorrent' || transcodingType === 'web-video') { - return this.buildWebVideoJobPayload({ videoUUID: video.uuid, resolution, fps, isNewVideo }) - } - - throw new Error('Unknown transcoding type') - }) - - const fps = computeOutputFPS({ inputFPS, resolution: maxResolution }) - - const parent = transcodingType === 'hls' - ? this.buildHLSJobPayload({ videoUUID: video.uuid, resolution: maxResolution, fps, isNewVideo }) - : this.buildWebVideoJobPayload({ videoUUID: video.uuid, resolution: maxResolution, fps, isNewVideo }) - - // Process the last resolution after the other ones to prevent concurrency issue - // Because low resolutions use the biggest one as ffmpeg input - await this.createTranscodingJobsWithChildren({ videoUUID: video.uuid, parent, children, user: null }) - } - - // --------------------------------------------------------------------------- - - private async createTranscodingJobsWithChildren (options: { - videoUUID: string - parent: (HLSTranscodingPayload | NewWebVideoResolutionTranscodingPayload) - children: (HLSTranscodingPayload | NewWebVideoResolutionTranscodingPayload)[] - user: MUserId | null - }) { - const { videoUUID, parent, children, user } = options - - const parentJob = await this.buildTranscodingJob({ payload: parent, user }) - const childrenJobs = await Bluebird.mapSeries(children, c => this.buildTranscodingJob({ payload: c, user })) - - await JobQueue.Instance.createJobWithChildren(parentJob, childrenJobs) - - await VideoJobInfoModel.increaseOrCreate(videoUUID, 'pendingTranscode', 1 + children.length) - } - - private async buildTranscodingJob (options: { - payload: VideoTranscodingPayload - user: MUserId | null // null means we don't want priority - }) { - const { user, payload } = options - - return { - type: 'video-transcoding' as 'video-transcoding', - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: undefined }), - payload - } - } - - private async buildLowerResolutionJobPayloads (options: { - video: MVideoWithFileThumbnail - inputVideoResolution: number - inputVideoFPS: number - hasAudio: boolean - isNewVideo: boolean - }) { - const { video, inputVideoResolution, inputVideoFPS, isNewVideo, hasAudio } = options - - // Create transcoding jobs if there are enabled resolutions - const resolutionsEnabled = await Hooks.wrapObject( - computeResolutionsToTranscode({ input: inputVideoResolution, type: 'vod', includeInput: false, strictLower: true, hasAudio }), - 'filter:transcoding.auto.resolutions-to-transcode.result', - options - ) - - const sequentialPayloads: (NewWebVideoResolutionTranscodingPayload | HLSTranscodingPayload)[][] = [] - - for (const resolution of resolutionsEnabled) { - const fps = computeOutputFPS({ inputFPS: inputVideoFPS, resolution }) - - if (CONFIG.TRANSCODING.WEB_VIDEOS.ENABLED) { - const payloads: (NewWebVideoResolutionTranscodingPayload | HLSTranscodingPayload)[] = [ - this.buildWebVideoJobPayload({ - videoUUID: video.uuid, - resolution, - fps, - isNewVideo - }) - ] - - // Create a subsequent job to create HLS resolution that will just copy web video codecs - if (CONFIG.TRANSCODING.HLS.ENABLED) { - payloads.push( - this.buildHLSJobPayload({ - videoUUID: video.uuid, - resolution, - fps, - isNewVideo, - copyCodecs: true - }) - ) - } - - sequentialPayloads.push(payloads) - } else if (CONFIG.TRANSCODING.HLS.ENABLED) { - sequentialPayloads.push([ - this.buildHLSJobPayload({ - videoUUID: video.uuid, - resolution, - fps, - copyCodecs: false, - isNewVideo - }) - ]) - } - } - - return sequentialPayloads - } - - private buildHLSJobPayload (options: { - videoUUID: string - resolution: number - fps: number - isNewVideo: boolean - deleteWebVideoFiles?: boolean // default false - copyCodecs?: boolean // default false - }): HLSTranscodingPayload { - const { videoUUID, resolution, fps, isNewVideo, deleteWebVideoFiles = false, copyCodecs = false } = options - - return { - type: 'new-resolution-to-hls', - videoUUID, - resolution, - fps, - copyCodecs, - isNewVideo, - deleteWebVideoFiles - } - } - - private buildWebVideoJobPayload (options: { - videoUUID: string - resolution: number - fps: number - isNewVideo: boolean - }): NewWebVideoResolutionTranscodingPayload { - const { videoUUID, resolution, fps, isNewVideo } = options - - return { - type: 'new-resolution-to-web-video', - videoUUID, - isNewVideo, - resolution, - fps - } - } - - private buildMergeAudioPayload (options: { - videoUUID: string - isNewVideo: boolean - hasChildren: boolean - }): MergeAudioTranscodingPayload { - const { videoUUID, isNewVideo, hasChildren } = options - - return { - type: 'merge-audio-to-web-video', - resolution: DEFAULT_AUDIO_RESOLUTION, - fps: VIDEO_TRANSCODING_FPS.AUDIO_MERGE, - videoUUID, - isNewVideo, - hasChildren - } - } - - private buildOptimizePayload (options: { - videoUUID: string - quickTranscode: boolean - isNewVideo: boolean - hasChildren: boolean - }): OptimizeTranscodingPayload { - const { videoUUID, quickTranscode, isNewVideo, hasChildren } = options - - return { - type: 'optimize-to-web-video', - videoUUID, - isNewVideo, - hasChildren, - quickTranscode - } - } -} diff --git a/server/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts b/server/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts deleted file mode 100644 index f0671bd7a..000000000 --- a/server/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { computeOutputFPS } from '@server/helpers/ffmpeg' -import { logger, loggerTagsFactory } from '@server/helpers/logger' -import { CONFIG } from '@server/initializers/config' -import { DEFAULT_AUDIO_RESOLUTION, VIDEO_TRANSCODING_FPS } from '@server/initializers/constants' -import { Hooks } from '@server/lib/plugins/hooks' -import { VODAudioMergeTranscodingJobHandler, VODHLSTranscodingJobHandler, VODWebVideoTranscodingJobHandler } from '@server/lib/runners' -import { VideoPathManager } from '@server/lib/video-path-manager' -import { MUserId, MVideoFile, MVideoFullLight, MVideoWithFileThumbnail } from '@server/types/models' -import { MRunnerJob } from '@server/types/models/runners' -import { ffprobePromise, getVideoStreamDimensionsInfo, getVideoStreamFPS, hasAudioStream, isAudioFile } from '@shared/ffmpeg' -import { getTranscodingJobPriority } from '../../transcoding-priority' -import { computeResolutionsToTranscode } from '../../transcoding-resolutions' -import { AbstractJobBuilder } from './abstract-job-builder' - -/** - * - * Class to build transcoding job in the local job queue - * - */ - -const lTags = loggerTagsFactory('transcoding') - -export class TranscodingRunnerJobBuilder extends AbstractJobBuilder { - - async createOptimizeOrMergeAudioJobs (options: { - video: MVideoFullLight - videoFile: MVideoFile - isNewVideo: boolean - user: MUserId - videoFileAlreadyLocked: boolean - }) { - const { video, videoFile, isNewVideo, user, videoFileAlreadyLocked } = options - - const mutexReleaser = videoFileAlreadyLocked - ? () => {} - : await VideoPathManager.Instance.lockFiles(video.uuid) - - try { - await video.reload() - await videoFile.reload() - - await VideoPathManager.Instance.makeAvailableVideoFile(videoFile.withVideoOrPlaylist(video), async videoFilePath => { - const probe = await ffprobePromise(videoFilePath) - - const { resolution } = await getVideoStreamDimensionsInfo(videoFilePath, probe) - const hasAudio = await hasAudioStream(videoFilePath, probe) - const inputFPS = videoFile.isAudio() - ? VIDEO_TRANSCODING_FPS.AUDIO_MERGE // The first transcoding job will transcode to this FPS value - : await getVideoStreamFPS(videoFilePath, probe) - - const maxResolution = await isAudioFile(videoFilePath, probe) - ? DEFAULT_AUDIO_RESOLUTION - : resolution - - const fps = computeOutputFPS({ inputFPS, resolution: maxResolution }) - const priority = await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - - const mainRunnerJob = videoFile.isAudio() - ? await new VODAudioMergeTranscodingJobHandler().create({ video, resolution: maxResolution, fps, isNewVideo, priority }) - : await new VODWebVideoTranscodingJobHandler().create({ video, resolution: maxResolution, fps, isNewVideo, priority }) - - if (CONFIG.TRANSCODING.HLS.ENABLED === true) { - await new VODHLSTranscodingJobHandler().create({ - video, - deleteWebVideoFiles: CONFIG.TRANSCODING.WEB_VIDEOS.ENABLED === false, - resolution: maxResolution, - fps, - isNewVideo, - dependsOnRunnerJob: mainRunnerJob, - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - }) - } - - await this.buildLowerResolutionJobPayloads({ - video, - inputVideoResolution: maxResolution, - inputVideoFPS: inputFPS, - hasAudio, - isNewVideo, - mainRunnerJob, - user - }) - }) - } finally { - mutexReleaser() - } - } - - // --------------------------------------------------------------------------- - - async createTranscodingJobs (options: { - transcodingType: 'hls' | 'webtorrent' | 'web-video' // TODO: remove webtorrent in v7 - video: MVideoFullLight - resolutions: number[] - isNewVideo: boolean - user: MUserId | null - }) { - const { video, transcodingType, resolutions, isNewVideo, user } = options - - const maxResolution = Math.max(...resolutions) - const { fps: inputFPS } = await video.probeMaxQualityFile() - const maxFPS = computeOutputFPS({ inputFPS, resolution: maxResolution }) - const priority = await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - - const childrenResolutions = resolutions.filter(r => r !== maxResolution) - - logger.info('Manually creating transcoding jobs for %s.', transcodingType, { childrenResolutions, maxResolution }) - - // Process the last resolution before the other ones to prevent concurrency issue - // Because low resolutions use the biggest one as ffmpeg input - const mainJob = transcodingType === 'hls' - // eslint-disable-next-line max-len - ? await new VODHLSTranscodingJobHandler().create({ video, resolution: maxResolution, fps: maxFPS, isNewVideo, deleteWebVideoFiles: false, priority }) - : await new VODWebVideoTranscodingJobHandler().create({ video, resolution: maxResolution, fps: maxFPS, isNewVideo, priority }) - - for (const resolution of childrenResolutions) { - const dependsOnRunnerJob = mainJob - const fps = computeOutputFPS({ inputFPS, resolution }) - - if (transcodingType === 'hls') { - await new VODHLSTranscodingJobHandler().create({ - video, - resolution, - fps, - isNewVideo, - deleteWebVideoFiles: false, - dependsOnRunnerJob, - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - }) - continue - } - - if (transcodingType === 'webtorrent' || transcodingType === 'web-video') { - await new VODWebVideoTranscodingJobHandler().create({ - video, - resolution, - fps, - isNewVideo, - dependsOnRunnerJob, - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - }) - continue - } - - throw new Error('Unknown transcoding type') - } - } - - private async buildLowerResolutionJobPayloads (options: { - mainRunnerJob: MRunnerJob - video: MVideoWithFileThumbnail - inputVideoResolution: number - inputVideoFPS: number - hasAudio: boolean - isNewVideo: boolean - user: MUserId - }) { - const { video, inputVideoResolution, inputVideoFPS, isNewVideo, hasAudio, mainRunnerJob, user } = options - - // Create transcoding jobs if there are enabled resolutions - const resolutionsEnabled = await Hooks.wrapObject( - computeResolutionsToTranscode({ input: inputVideoResolution, type: 'vod', includeInput: false, strictLower: true, hasAudio }), - 'filter:transcoding.auto.resolutions-to-transcode.result', - options - ) - - logger.debug('Lower resolutions build for %s.', video.uuid, { resolutionsEnabled, ...lTags(video.uuid) }) - - for (const resolution of resolutionsEnabled) { - const fps = computeOutputFPS({ inputFPS: inputVideoFPS, resolution }) - - if (CONFIG.TRANSCODING.WEB_VIDEOS.ENABLED) { - await new VODWebVideoTranscodingJobHandler().create({ - video, - resolution, - fps, - isNewVideo, - dependsOnRunnerJob: mainRunnerJob, - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - }) - } - - if (CONFIG.TRANSCODING.HLS.ENABLED) { - await new VODHLSTranscodingJobHandler().create({ - video, - resolution, - fps, - isNewVideo, - deleteWebVideoFiles: false, - dependsOnRunnerJob: mainRunnerJob, - priority: await getTranscodingJobPriority({ user, type: 'vod', fallback: 0 }) - }) - } - } - } -} -- cgit v1.2.3