def fetch_playlist(self, play=False): if not self.highlight_item: return songs = fmlib.new_playlist(self.highlight_item.channel_id, self.get_history_sids()) with self.keep_list_lock(): self.playlist = songs if songs and play: Player.play_new(songs[0]) self.current_index = 0 Player.set_source(self)
def fetch_playlist(self, play=False): if not self.highlight_item: return songs = fmlib.new_playlist(self.highlight_item.channel_id, self.get_history_sids()) with self.keep_list_lock(): self.playlist = songs if songs and play: Player.play_new(songs[0]) self.current_index = 0 Player.set_source(self)
def extent_playlist(self): if len(self.playlist) - self.current_index - 1 < 5: songs = fmlib.new_playlist(self.highlight_item.channel_id, self.get_history_sids()) if songs: self.playlist.extend(songs)
def extent_playlist(self): if len(self.playlist) - self.current_index - 1 < 5: songs = fmlib.new_playlist(self.highlight_item.channel_id, self.get_history_sids()) if songs: self.playlist.extend(songs)