aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 6c8bceb..77e90a5 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -15,14 +15,15 @@ pub struct ItemInfo {
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Source {
- file: PathBuf,
- tracks: BTreeMap<u64, SourceTrack>,
+ pub file: PathBuf,
+ pub tracks: BTreeMap<u64, SourceTrack>,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
+#[serde(rename_all = "snake_case", tag = "kind")]
pub enum SourceTrack {
Video {
- name: String,
+ language: String,
codec: String,
width: usize,
height: usize,