diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-11 23:16:10 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-11 23:16:10 +0100 |
commit | 43e986b5e626b339095c118fa79ba6cd011aeb9f (patch) | |
tree | aeb70c1233d6bade2d04e86086f48e88b72f3815 /common/src | |
parent | 0f944c90380b28e010211f3c8d57423e38bb2c11 (diff) | |
download | jellything-43e986b5e626b339095c118fa79ba6cd011aeb9f.tar jellything-43e986b5e626b339095c118fa79ba6cd011aeb9f.tar.bz2 jellything-43e986b5e626b339095c118fa79ba6cd011aeb9f.tar.zst |
doesnt work but should
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index 77e90a5..0e736b7 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -10,12 +10,12 @@ pub struct DirectoryInfo { #[derive(Debug, Clone, Deserialize, Serialize)] pub struct ItemInfo { pub title: String, - pub source: Vec<Source>, + pub source: Source, } #[derive(Debug, Clone, Deserialize, Serialize)] pub struct Source { - pub file: PathBuf, + pub path: PathBuf, pub tracks: BTreeMap<u64, SourceTrack>, } @@ -25,8 +25,8 @@ pub enum SourceTrack { Video { language: String, codec: String, - width: usize, - height: usize, + width: u64, + height: u64, }, Audio { channels: usize, @@ -35,6 +35,7 @@ pub enum SourceTrack { language: String, }, Subtitles { + codec: String, language: String, }, } |