From 6edf0fd93abf7e58b4c0974e3d3e54bcf8517946 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 8 Dec 2025 19:53:12 +0100 Subject: human-readable cache keys --- stream/types/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'stream/types') 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 { -- cgit v1.3