diff options
| author | salmonik <raisersoft@proton.me> | 2026-07-09 16:20:04 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-07-09 16:20:04 +0200 |
| commit | 190241420561a9c13f7ba7f604b8a2bb436cf55e (patch) | |
| tree | d8762157b18701873c0ce8ef65466f8c1da2e8ee /src/commands/music.rs | |
| parent | truncate search results (diff) | |
| download | senator-sperma-190241420561a9c13f7ba7f604b8a2bb436cf55e.tar.gz senator-sperma-190241420561a9c13f7ba7f604b8a2bb436cf55e.zip | |
search for mp4's too
Signed-off-by: salmonik <raisersoft@proton.me>
Diffstat (limited to '')
| -rw-r--r-- | src/commands/music.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/music.rs b/src/commands/music.rs index 313577d..d2861e4 100644 --- a/src/commands/music.rs +++ b/src/commands/music.rs | |||
| @@ -169,7 +169,11 @@ async fn resolve_source( | |||
| 169 | let results = ctx | 169 | let results = ctx |
| 170 | .data() | 170 | .data() |
| 171 | .copyparty | 171 | .copyparty |
| 172 | .search(&name, 5, &["mp3", "wav", "ogg", "flac", "m4a", "opus"]) | 172 | .search( |
| 173 | &name, | ||
| 174 | 5, | ||
| 175 | &["mp3", "wav", "ogg", "flac", "m4a", "opus", "mp4"], | ||
| 176 | ) | ||
| 173 | .await | 177 | .await |
| 174 | .map_err(|e| { | 178 | .map_err(|e| { |
| 175 | error!(query = %name, error = %e, "copyparty search failed"); | 179 | error!(query = %name, error = %e, "copyparty search failed"); |
