mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: fix metadata embedding
This commit is contained in:
10
lib/utils.go
10
lib/utils.go
@@ -121,3 +121,13 @@ func FileExists(file string) (bool, error) {
|
||||
|
||||
return false, err
|
||||
}
|
||||
|
||||
func (app *App) InitSpotifyClient() error {
|
||||
app.SpotifyClient = NewSpotifyClient()
|
||||
|
||||
if err := app.SpotifyClient.Initialize(); err != nil {
|
||||
return errors.New("Unable to fetch Spotify metadata.")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user