fix: remove spotiflac libraries

This commit is contained in:
2026-02-15 17:10:08 +01:00
parent 30c86752b6
commit fc4b29b3eb
7 changed files with 22 additions and 24 deletions

View File

@@ -5,15 +5,14 @@ import (
"log"
"os"
"github.com/Superredstone/spotiflac-cli/app"
"github.com/Superredstone/spotiflac-cli/pkg"
"github.com/Superredstone/spotiflac-cli/lib"
"github.com/urfave/cli/v3"
)
func main() {
var output_folder, service string
application := app.NewApp()
app := lib.NewApp()
cmd := &cli.Command{
Name: "spotiflac-cli",
@@ -41,7 +40,7 @@ func main() {
},
Action: func(ctx context.Context, cmd *cli.Command) error {
song_url := cmd.Args().First()
err := pkg.Download(application, song_url, output_folder, service)
err := pkg.Download(app, song_url, output_folder, service)
return err
},
},
@@ -51,7 +50,7 @@ func main() {
Usage: "view song metadata",
Action: func(ctx context.Context, cmd *cli.Command) error {
url := cmd.Args().First()
return pkg.PrintMetadata(application, url)
return pkg.PrintMetadata(app, url)
},
},
},