feat: add "copy" codec

This commit is contained in:
2021-04-17 01:13:20 +02:00
parent 399c4b8a2c
commit d073ef10b5
3 changed files with 38 additions and 10 deletions

View File

@@ -46,6 +46,9 @@ pub enum Transcode {
#[serde(default = "bitrate_type_vbr")]
bitrate_type: BitrateType,
},
#[serde(rename = "copy")]
Copy,
}
impl Transcode {
@@ -54,6 +57,7 @@ impl Transcode {
Transcode::Opus { .. } => "opus",
Transcode::Flac { .. } => "flac",
Transcode::Mp3 { .. } => "mp3",
Transcode::Copy => "",
}
}
}