MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / current_song

Method current_song

client/modules/MPDControl.py:282–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

280
281 @reconnect
282 def current_song(self):
283 item = self.client.playlistinfo(int(self.client.status()["song"]))[0]
284 result = "%s by %s" % (item["title"], item["artist"])
285 return result
286
287 @reconnect
288 def volume(self, level=None, interval=None):

Callers 2

delegateInputMethod · 0.80
handleForeverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected