mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add first metadata implementation
This commit is contained in:
@@ -30,7 +30,12 @@ func (app *App) Download(url string, outputFolder string, serviceString string)
|
||||
serviceString = DEFAULT_DOWNLOAD_SERVICE
|
||||
}
|
||||
|
||||
_ = GetUrlType(url)
|
||||
_, err := app.GetMetadata(url)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_ = ParseUrlType(url)
|
||||
|
||||
return errors.New("Invalid URL.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user