Ejemplo n.º 1
0
def replacep(args):
    songs = list(parser.parse(args.collection))
    if songs:
        mpd.replace(songs)
        mpd.play()
    else:
        mpd.clear()
Ejemplo n.º 2
0
def clear(args):
    mpd.clear()
Ejemplo n.º 3
0
def replace(args):
    songs = list(parser.parse(args.collection))
    mpd.clear()
    if songs:
        mpd.add(songs)