From daa18bd9eabebe86909e1ad013138774636b3653 Mon Sep 17 00:00:00 2001 From: Physcik Date: Thu, 18 Dec 2025 21:39:50 +0500 Subject: Makefile --- Audio/Meta.go | 1 - Makefile | 2 ++ main.go | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Audio/Meta.go b/Audio/Meta.go index 6b8343c..bde6cfe 100644 --- a/Audio/Meta.go +++ b/Audio/Meta.go @@ -59,7 +59,6 @@ func GetSongDuration(path string) (time.Duration, error) { } return time.Duration(0), err } - duration += frame.Duration() } return duration, nil diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2a654cf --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +run: + go run . diff --git a/main.go b/main.go index 9ab2ae9..49b9217 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "log" "net/http" "os" @@ -16,5 +17,8 @@ func main() { var _, _ = endpoints.GetAvaliableSongs() fmt.Println(settings.Current) - http.ListenAndServe(":6969", nil) + var err = http.ListenAndServe(":6969", nil) + if err != nil { + log.Println(err.Error()) + } } -- cgit v1.3