aboutsummaryrefslogtreecommitdiff
path: root/stream/types
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-12-08 19:53:12 +0100
committermetamuffin <metamuffin@disroot.org>2025-12-08 19:53:12 +0100
commit6edf0fd93abf7e58b4c0974e3d3e54bcf8517946 (patch)
tree32577db9d987897d4037ba9af0084b95b55e145c /stream/types
parente4584a8135584e6591bac7d5397cf227cf3cff92 (diff)
downloadjellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar
jellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar.bz2
jellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar.zst
human-readable cache keys
Diffstat (limited to 'stream/types')
-rw-r--r--stream/types/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/stream/types/src/lib.rs b/stream/types/src/lib.rs
index a031f3a..dbbe7b2 100644
--- a/stream/types/src/lib.rs
+++ b/stream/types/src/lib.rs
@@ -98,6 +98,16 @@ pub enum StreamContainer {
JVTT,
}
+impl Display for TrackKind {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str(match self {
+ TrackKind::Video => "video",
+ TrackKind::Audio => "audio",
+ TrackKind::Subtitle => "subtitle",
+ })
+ }
+}
+
impl StreamSpec {
pub fn to_query(&self) -> String {
match self {