Use new pagination interface for podcast episodes

This commit is contained in:
Henrik Friedrichsen
2021-04-08 16:49:19 +02:00
parent 53db188153
commit 0f8e4d0558
4 changed files with 52 additions and 37 deletions

View File

@@ -578,9 +578,9 @@ fn run_dbus_server(
}
Some(UriType::Show) => {
if let Some(s) = spotify.get_show(&id) {
let mut show = Show::from(&s);
let mut show: Show = (&s).into();
let spotify = spotify.clone();
show.load_episodes(spotify);
show.load_all_episodes(spotify);
if let Some(e) = &show.episodes {
queue.clear();
let mut ep = e.clone();