v1.0.1
This commit is contained in:
6
go.mod
6
go.mod
@@ -1,8 +1,8 @@
|
||||
module zomo.land/slskd-rename
|
||||
module zomo.land/music-rename
|
||||
|
||||
go 1.21.1
|
||||
|
||||
require (
|
||||
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8 // indirect
|
||||
github.com/joho/godotenv v1.5.1 // indirect
|
||||
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
|
||||
github.com/joho/godotenv v1.5.1
|
||||
)
|
||||
|
||||
3
main.go
3
main.go
@@ -15,7 +15,6 @@ import (
|
||||
|
||||
"github.com/dhowden/tag"
|
||||
"github.com/joho/godotenv"
|
||||
// _ "github.com/joho/godotenv/autoload"
|
||||
)
|
||||
|
||||
type DownloadDirectoryComplete struct {
|
||||
@@ -48,7 +47,7 @@ func mainErr() error {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user