mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix transcoding of audio only videos
This commit is contained in:
parent
82246a0c8d
commit
6ef092f0da
7 changed files with 113 additions and 4 deletions
|
@ -5,6 +5,8 @@ import { AbstractCommand, OverrideCommandOptions } from '../shared/abstract-comm
|
|||
|
||||
export class ConfigCommand extends AbstractCommand {
|
||||
|
||||
private savedConfig: CustomConfig
|
||||
|
||||
static getConfigResolutions (enabled: boolean, with0p = false) {
|
||||
return {
|
||||
'0p': enabled && with0p,
|
||||
|
@ -579,4 +581,14 @@ export class ConfigCommand extends AbstractCommand {
|
|||
|
||||
return this.updateCustomConfig({ ...options, newCustomConfig: merge({}, existing, options.newConfig) })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async save () {
|
||||
this.savedConfig = await this.getCustomConfig()
|
||||
}
|
||||
|
||||
rollback () {
|
||||
return this.updateCustomConfig({ newCustomConfig: this.savedConfig })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue