aboutsummaryrefslogtreecommitdiff
path: root/helpers/actions/unpause.py
blob: 5fa88c35aebf6100e3cca7c024d63d4a149326c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
def run(action, music=None, **kwargs):
    for music in action.music_list(music):
        if music.is_loaded_paused():
            music.unpause()

def description(action, music=None, **kwargs):
    if music is not None:
        return "unpausing « {} »".format(music.name)
    else:
        return "unpausing all musics"