def save(self):
        """ commit a stored playlist to disk via MPD """
        name = request.GET.get('name',0)

        if name == 0:
            return ''

        self.m = g.p.connect()
        info = self.m.lsinfo()
        available_playlists = [playlist['playlist'] for playlist in info if 'playlist' in playlist]

        if available_playlists in name:
            self.m.rm(name)
        self.m.save(name)
        return 'saved!'
dataset/ETHPy150Open ralfonso/theory/theory/controllers/playlist.py/PlaylistController.save/swapped operands of `in`