This commit is contained in:
2025-05-24 21:02:52 -05:00
parent a986efc7f1
commit b5dc0c37f6
2 changed files with 4 additions and 5 deletions

6
go.mod
View File

@@ -1,8 +1,8 @@
module zomo.land/slskd-rename module zomo.land/music-rename
go 1.21.1 go 1.21.1
require ( require (
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8 // indirect github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
github.com/joho/godotenv v1.5.1 // indirect github.com/joho/godotenv v1.5.1
) )

View File

@@ -15,7 +15,6 @@ import (
"github.com/dhowden/tag" "github.com/dhowden/tag"
"github.com/joho/godotenv" "github.com/joho/godotenv"
// _ "github.com/joho/godotenv/autoload"
) )
type DownloadDirectoryComplete struct { type DownloadDirectoryComplete struct {
@@ -48,7 +47,7 @@ func mainErr() error {
return errors.New("missing data argument") return errors.New("missing data argument")
} }
if err := godotenv.Load(); err != nil { if err := godotenv.Load(path.Join(os.Args[0], "music-rename.env")); err != nil {
return err return err
} }