aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-29 20:20:42 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-29 20:20:42 +0100
commit46fe19f1c0814fa3975f60dcdd17c1680b161c3c (patch)
tree53adfe377325d363631f9cc73b99e1dfb850a57a /common
parentc0ba30314a06de10c9b98ac130676dcbc9f287fa (diff)
downloadjellything-46fe19f1c0814fa3975f60dcdd17c1680b161c3c.tar
jellything-46fe19f1c0814fa3975f60dcdd17c1680b161c3c.tar.bz2
jellything-46fe19f1c0814fa3975f60dcdd17c1680b161c3c.tar.zst
caching subtitles
Diffstat (limited to 'common')
-rw-r--r--common/src/jhls.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/jhls.rs b/common/src/jhls.rs
index f4448b6..12fa2d6 100644
--- a/common/src/jhls.rs
+++ b/common/src/jhls.rs
@@ -1,3 +1,4 @@
+use bincode::{Decode, Encode};
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
@@ -32,7 +33,7 @@ pub enum EncodingProfile {
},
}
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Debug, Serialize, Deserialize, Encode, Decode)]
pub struct SubtitleCue {
pub start: f64,
pub end: f64,