mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +00:00
remove print statement
This commit is contained in:
parent
5d3dbf5d03
commit
226671f7d7
1 changed files with 1 additions and 2 deletions
|
|
@ -238,12 +238,11 @@ func handleNewRecording(socket socketio.Conn, recordData string) {
|
||||||
logger.ErrorContext(ctx, "failed to write wav file.", slog.Any("error", err))
|
logger.ErrorContext(ctx, "failed to write wav file.", slog.Any("error", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
matches, err := shazam.FindMatchess(samples, recData.Duration, sampleRate)
|
matches, _, err := shazam.FindMatches(samples, recData.Duration, sampleRate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := xerrors.New(err)
|
err := xerrors.New(err)
|
||||||
logger.ErrorContext(ctx, "failed to get matches.", slog.Any("error", err))
|
logger.ErrorContext(ctx, "failed to get matches.", slog.Any("error", err))
|
||||||
}
|
}
|
||||||
fmt.Println("Matches! : ", matches)
|
|
||||||
|
|
||||||
jsonData, err := json.Marshal(matches)
|
jsonData, err := json.Marshal(matches)
|
||||||
if len(matches) > 10 {
|
if len(matches) > 10 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue