aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-11 20:49:39 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-11 20:49:39 +0100
commit0f944c90380b28e010211f3c8d57423e38bb2c11 (patch)
treee8b674763e4b3210efc7bd26eadd34eff90b0389 /common/src
parent0737008c5c649f0ce33719fb9126b284d76c9807 (diff)
downloadjellything-0f944c90380b28e010211f3c8d57423e38bb2c11.tar
jellything-0f944c90380b28e010211f3c8d57423e38bb2c11.tar.bz2
jellything-0f944c90380b28e010211f3c8d57423e38bb2c11.tar.zst
tool for generating metadata
Diffstat (limited to 'common/src')
-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,