feat(qmc): allow retrieve metadata online

This commit is contained in:
Unlock Music Dev
2022-11-25 04:29:59 +08:00
parent f60f0b3d07
commit 112d9ab28e
3 changed files with 83 additions and 5 deletions

View File

@@ -45,6 +45,10 @@ func (r *Result) GetArtists() []string {
return artists
}
func (r *Result) HasMetadata() bool {
return r.GetTitle() != "" || r.GetAlbum() != "" || len(r.GetArtists()) > 0
}
type Format struct {
Filename string `json:"filename"`
NbStreams int `json:"nb_streams"`