Skip to content

Instantly share code, notes, and snippets.

@fitoria
Created February 19, 2010 22:49
Show Gist options
  • Select an option

  • Save fitoria/309311 to your computer and use it in GitHub Desktop.

Select an option

Save fitoria/309311 to your computer and use it in GitHub Desktop.
>>> from handler_amarok2 import AmarokHandler
>>> player = AmarokHandler()
>>> player.is_running()
False
>>> player.is_playing()
False
>>> player.is_get_current_song()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'AmarokHandler' object has no attribute 'is_get_current_song'
>>> player.get_current_song()
>>> ##amarok on!
...
>>> player.is_running()
True
>>> player.is_playing()
False
>>> #playing a song
...
>>> player.is_playing()
True
>>> player.get_current_song()
Luca Turilli - Prophet of the last eclipse [limited edition] - Rider of the astral fire
>>> import songretriever
>>> songretriever.test()
player mpd
running?: False
playing?: False
current song: None
player Amarok2
running?: True
playing?: True
current song: Luca Turilli - Prophet of the last eclipse [limited edition] - Aenigma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment