Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
fix: simplify file detection to just mp3
Browse files Browse the repository at this point in the history
  • Loading branch information
keshon committed Apr 15, 2024
1 parent 96ae8b0 commit 0959678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/music/discord/play.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func splitParamsToOriginsAndType(param string) (string, []string) {
}
return originType, streamUrls
} else {
if strings.Contains(".mp3", param) || strings.Contains(".wav", param) || strings.Contains(".ogg", param) || strings.Contains(".flac", param) || strings.Contains(".aac", param) || strings.Contains(".m4a", param) {
if strings.Contains(param, ".mp3") {
slog.Info("Possible files: ", param)
// Check if the parameter contains numeric IDs
filesSlice := strings.Fields(param)
Expand Down

0 comments on commit 0959678

Please sign in to comment.