# HG changeset patch # User Neil Muller # Date 1328968394 -7200 # Node ID e393954e3749a1de039be5c0204d57ea2d9aa93b # Parent 20e296d4a3a5260ce7edb6b79159284f48a056ac Move get_current_playlist onto sound object diff -r 20e296d4a3a5 -r e393954e3749 pyntnclick/sound.py --- a/pyntnclick/sound.py Sat Feb 11 15:48:04 2012 +0200 +++ b/pyntnclick/sound.py Sat Feb 11 15:53:14 2012 +0200 @@ -111,6 +111,10 @@ def change_playlist(self, new_playlist): albow.music.change_playlist(new_playlist) + def get_current_playlist(): + if albow.music.music_enabled and albow.music.current_playlist: + return albow.music.current_playlist + def start_next_music(): """Start playing the next item from the current playlist immediately.""" @@ -124,9 +128,5 @@ albow.music.current_music = next_music -def get_current_playlist(): - if albow.music.music_enabled and albow.music.current_playlist: - return albow.music.current_playlist - # Monkey patch albow.music.start_next_music = start_next_music