def add_to_list(self, sids, playlist_id=0): if playlist_id and nplayer.add_to_onlinelist(sids, playlist_id): event_manager.emit("refresh-online-list", playlist_id) elif not playlist_id: event_manager.emit( "add-songs-to-playing-list", ([song for song in self.get_songs() if song["id"] in sids], False) )
def add_to_list(self, sids, playlist_id=0): if playlist_id and nplayer.add_to_onlinelist(sids, playlist_id): event_manager.emit('refresh-online-list', playlist_id) elif not playlist_id: event_manager.emit( 'add-songs-to-playing-list', ([song for song in self.get_songs() if song['id'] in sids], False))
def add_to_list(self, sids, playlist_id=0): if playlist_id and nplayer.add_to_onlinelist(sids, playlist_id): event_manager.emit('refresh-online-list', playlist_id) elif not playlist_id: event_manager.emit('add-songs-to-playing-list', (nplayer.songs_detail(sids), False))