def get_next_song(self, index): r = MusicDatabase.get_next_playlist_song(self.owner_id, self.id, index) if not r: return None return (r['song_id'], r['pos'])
def get_next_song(playlistID, index, user_id): r = MusicDatabase.get_next_playlist_song(user_id, playlistID, index) if not r: return None return (r['song_id'], r['pos'])