def deleteEntry(self): if self.ltype != 'sl_glob_playlist' or not len(self.filelist): return idx = self['genreList'].getSelectedIndex() SimplePlaylistIO.delEntry('mp_global_pl_01', self.filelist, idx) self.chooseMenuList.setList(map(simplelistListEntry, self.filelist))
def deleteEntry(self): if self.ltype != 'sl_glob_playlist' or not len(self.filelist): return idx = self['genreList'].getSelectedIndex() SimplePlaylistIO.delEntry('mp_global_pl_%02d' % config.mediaportal.sp_pl_number.value, self.filelist, idx) self.chooseMenuList.setList(map(simplelistListEntry, self.filelist))