]>
Commit | Line | Data |
---|---|---|
c4f4f2a1 IB |
1 | def run(action, music=None, **kwargs): |
2 | for music in action.music_list(music): | |
3 | if music.is_loaded_playing(): | |
4 | music.pause() | |
5 | ||
6 | def description(action, music=None, **kwargs): | |
7 | if music is not None: | |
6a327173 | 8 | return _("pausing « {} »").format(music.name) |
c4f4f2a1 | 9 | else: |
6a327173 | 10 | return _("pausing all musics") |