aboutsummaryrefslogtreecommitdiff
path: root/stream/src/jhls.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-14 13:41:42 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-14 13:41:42 +0200
commita3afc2756a52f7d6fedc928b97c8ff3eb1ade338 (patch)
tree9bb043975a6b92e45bbc2f09e19641f1109950b1 /stream/src/jhls.rs
parent48a57a52d85d387efe122fb4d9fb113f577a0a98 (diff)
downloadjellything-a3afc2756a52f7d6fedc928b97c8ff3eb1ade338.tar
jellything-a3afc2756a52f7d6fedc928b97c8ff3eb1ade338.tar.bz2
jellything-a3afc2756a52f7d6fedc928b97c8ff3eb1ade338.tar.zst
lots of rewriting and removing dumb code
Diffstat (limited to 'stream/src/jhls.rs')
-rw-r--r--stream/src/jhls.rs47
1 files changed, 0 insertions, 47 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs
deleted file mode 100644
index 2a2faec..0000000
--- a/stream/src/jhls.rs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- 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.
- Copyright (C) 2025 metamuffin <metamuffin.org>
-*/
-use anyhow::{anyhow, Result};
-use jellybase::{
- common::{
- jhls::JhlsTrackIndex,
- stream::StreamSpec,
- user::{PermissionSet, UserPermission},
- LocalTrack, Node,
- },
- permission::PermissionSetExt,
- CONF,
-};
-use std::sync::Arc;
-use tokio::io::{AsyncWriteExt, DuplexStream};
-
-pub async fn jhls_index(
- node: Arc<Node>,
- local_tracks: &[LocalTrack],
- spec: StreamSpec,
- mut b: DuplexStream,
- perms: &PermissionSet,
-) -> Result<()> {
- // let local_track = local_tracks
- // .first()
- // .ok_or(anyhow!("track missing"))?
- // .to_owned();
-
- // let fragments = tokio::task::spawn_blocking(move || {
- // jellyremuxer::fragment::fragment_index(&CONF.media_path, &node, &local_track, spec.track[0])
- // })
- // .await??;
-
- // let out = serde_json::to_string(&JhlsTrackIndex {
- // extra_profiles: if perms.check(&UserPermission::Transcode) {
- // CONF.transcoding_profiles.clone()
- // } else {
- // vec![]
- // },
- // fragments,
- // })?;
- // tokio::spawn(async move { b.write_all(out.as_bytes()).await });
- Ok(())
-}