aboutsummaryrefslogtreecommitdiffstats
path: root/src/voice
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 01:31:21 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 01:31:21 +0100
commitf811fed0d65bed62bb1c5a986f6f355d3b68612d (patch)
tree8e1b9ba652f3ce88c5d569b622bea9344e258621 /src/voice
parentmusic: decode compressed playback without a temp file (diff)
downloadsenator-sperma-f811fed0d65bed62bb1c5a986f6f355d3b68612d.tar.gz
senator-sperma-f811fed0d65bed62bb1c5a986f6f355d3b68612d.zip
music: reject live streams on the yt-dlp path
Diffstat (limited to '')
-rw-r--r--src/voice/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/voice/mod.rs b/src/voice/mod.rs
index 2866f54..8f73b7a 100644
--- a/src/voice/mod.rs
+++ b/src/voice/mod.rs
@@ -253,6 +253,8 @@ pub async fn ytdlp_download(url: &str) -> Result<Vec<u8>> {
253 "--no-playlist", 253 "--no-playlist",
254 "--max-filesize", 254 "--max-filesize",
255 "128M", 255 "128M",
256 "--match-filter",
257 "!is_live",
256 "--", 258 "--",
257 url, 259 url,
258 ]) 260 ])