mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add amazon and qobuz services
This commit is contained in:
10
main.go
10
main.go
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
var output_folder string
|
||||
var output_folder, service string
|
||||
|
||||
application := app.NewApp()
|
||||
|
||||
@@ -32,10 +32,16 @@ func main() {
|
||||
Usage: "set output folder",
|
||||
Destination: &output_folder,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "service",
|
||||
Aliases: []string{"s"},
|
||||
Usage: "set service to tidal/amazon/qobuz (FFmpeg is required for amazon and qobuz)",
|
||||
Destination: &service,
|
||||
},
|
||||
},
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
song_url := cmd.Args().First()
|
||||
err := pkg.Download(application, song_url, output_folder)
|
||||
err := pkg.Download(application, song_url, output_folder, service)
|
||||
return err
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user