1
0
Fork 0
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:
Chocobozzz 2025-01-17 09:52:45 +01:00
parent 82246a0c8d
commit 6ef092f0da
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 113 additions and 4 deletions

View file

@ -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 })
}
}