diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:31:21 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:31:21 +0100 |
| commit | f811fed0d65bed62bb1c5a986f6f355d3b68612d (patch) | |
| tree | 8e1b9ba652f3ce88c5d569b622bea9344e258621 /src/voice/mod.rs | |
| parent | music: decode compressed playback without a temp file (diff) | |
| download | senator-sperma-f811fed0d65bed62bb1c5a986f6f355d3b68612d.tar.gz senator-sperma-f811fed0d65bed62bb1c5a986f6f355d3b68612d.zip | |
music: reject live streams on the yt-dlp path
Diffstat (limited to 'src/voice/mod.rs')
| -rw-r--r-- | src/voice/mod.rs | 2 |
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 | ]) |
