diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-22 09:02:46 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-22 09:02:46 +0100 |
commit | b92983fb0cab2a284301b930d2b15ec0109dd93e (patch) | |
tree | f7fb1b900b3fa5ced46de392a47756c3ca5cc398 /stream/src/webvtt.rs | |
parent | 9a52852f736692e5319da49478e16bfba30fbd39 (diff) | |
parent | 826c61c9612e855b19c3adb0e93d80bbfb4dc903 (diff) | |
download | jellything-b92983fb0cab2a284301b930d2b15ec0109dd93e.tar jellything-b92983fb0cab2a284301b930d2b15ec0109dd93e.tar.bz2 jellything-b92983fb0cab2a284301b930d2b15ec0109dd93e.tar.zst |
Merge branch 'master' of codeberg.org:metamuffin/jellything
Diffstat (limited to 'stream/src/webvtt.rs')
-rw-r--r-- | stream/src/webvtt.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stream/src/webvtt.rs b/stream/src/webvtt.rs index 6ee5212..faf0cd3 100644 --- a/stream/src/webvtt.rs +++ b/stream/src/webvtt.rs @@ -41,8 +41,12 @@ pub async fn webvtt_stream( }) .await??; - let webvtt = webvtt_from_ass_blocks(node.public.title, codec_private, ass_blocks) - .context("transcoding subtitles")?; + let webvtt = webvtt_from_ass_blocks( + node.public.title.clone().unwrap_or_default(), + codec_private, + ass_blocks, + ) + .context("transcoding subtitles")?; tokio::task::spawn(async move { let _ = b.write_all(webvtt.as_bytes()).await; |