Created
February 19, 2010 22:49
-
-
Save fitoria/309311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> 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