server/lastfm: make a scrobbler interface and migrate lastfm to use it
This commit is contained in:
committed by
Senan Kelly
parent
cc93d61908
commit
f4ff7e70f2
@@ -4,6 +4,10 @@ import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
type Scrobbler interface {
|
||||
Scrobble(interface{}, ScrobbleOptions) error
|
||||
}
|
||||
|
||||
type LastFM struct {
|
||||
XMLName xml.Name `xml:"lfm"`
|
||||
Status string `xml:"status,attr"`
|
||||
|
||||
Reference in New Issue
Block a user