feat(qmc): allow retrieve metadata online

This commit is contained in:
Unlock Music Dev committed 2022-12-06 21:52:18 +08:00
1 parent f60f0b3d07
commit 112d9ab28e
3 files changed
+83 -5

No files matched your search

+4
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"`