aboutsummaryrefslogtreecommitdiff
path: root/cmd/mpd-scrobbler/main.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-10 11:44:47 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-10 11:44:47 -0700
commit6440b7f28190eff567fa411ead2adbd80d2d870e (patch)
tree3407d4f4cc6cddfa58f371ae428960446df4e4b7 /cmd/mpd-scrobbler/main.go
parentmpd: export the type Player (diff)
downloadx-6440b7f28190eff567fa411ead2adbd80d2d870e.tar.gz
scrobbler: add functions to create and run it
Add a new function to create a scrobbler. The function takes care of creating the mpd client. Add a function to run the scrobbler, which takes care of creating a new record when needed. This will simplify the interface for the caller, as all they really care about is: create the scrobbler, close it when we're done, and collect songs information while we listen to our music.
Diffstat (limited to 'cmd/mpd-scrobbler/main.go')
0 files changed, 0 insertions, 0 deletions