aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-11-28 13:31:28 +0100
committermetamuffin <metamuffin@disroot.org>2023-11-28 13:31:28 +0100
commit1d2ed0a54c21e0ab7dd01b5f3975bb5df12d40ea (patch)
treea7531389b2a8ad6d8b89d92900b96fcf0e431774 /common/src
parent9ac41109362dc118f1dbd2e86e9c8d64fd7364e9 (diff)
downloadjellything-1d2ed0a54c21e0ab7dd01b5f3975bb5df12d40ea.tar
jellything-1d2ed0a54c21e0ab7dd01b5f3975bb5df12d40ea.tar.bz2
jellything-1d2ed0a54c21e0ab7dd01b5f3975bb5df12d40ea.tar.zst
ass to webvtt conversion
Diffstat (limited to 'common/src')
-rw-r--r--common/src/stream.rs2
-rw-r--r--common/src/user.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/src/stream.rs b/common/src/stream.rs
index 6c93294..aa1b931 100644
--- a/common/src/stream.rs
+++ b/common/src/stream.rs
@@ -28,6 +28,7 @@ pub enum StreamFormat {
#[cfg_attr(feature = "rocket", field(value = "hlsvariant"))] HlsVariant,
#[cfg_attr(feature = "rocket", field(value = "jhls"))] Jhls,
#[cfg_attr(feature = "rocket", field(value = "hlsseg"))] Segment,
+ #[cfg_attr(feature = "rocket", field(value = "webvtt"))] Webvtt,
}
impl Default for StreamSpec {
@@ -82,6 +83,7 @@ impl StreamFormat {
StreamFormat::HlsVariant => "hlsvariant",
StreamFormat::Jhls => "jhls",
StreamFormat::Segment => "hlsseg",
+ StreamFormat::Webvtt => "webvtt",
}
}
}
diff --git a/common/src/user.rs b/common/src/user.rs
index 2b67de5..ae9a757 100644
--- a/common/src/user.rs
+++ b/common/src/user.rs
@@ -58,7 +58,7 @@ impl UserPermission {
self,
Transcode
| FederatedContent
- | StreamFormat(Jhls | HlsMaster | HlsVariant | Matroska | Segment)
+ | StreamFormat(Jhls | HlsMaster | HlsVariant | Matroska | Segment | Webvtt)
)
}
}