예제 #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)
예제 #2
0
def remove(args):
    songs = list(parser.parse(args.collection))
    if songs:
        mpd.remove(songs)