Ejemplo n.º 1
0
def keep(args):
    songs = parser.parse(args.collection)
    remove_songs = [s for s in mpd.get_playlist_songs() if s not in songs]
    if remove_songs:
        mpd.remove(remove_songs)
Ejemplo n.º 2
0
def remove(args):
    songs = list(parser.parse(args.collection))
    if songs:
        mpd.remove(songs)