0.1.62 upd
This commit is contained in:
parent
0aed5f45cc
commit
22eae1627a
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.61"
|
version = "0.1.62"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -317,4 +317,14 @@ impl XDatabase {
|
|||||||
playlists.push(playlist);
|
playlists.push(playlist);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn remove_playlist(&mut self, pl_id: u64) {
|
||||||
|
if let XSomeList::Playlists(playlists) = &mut self.find_dataset(2).child {
|
||||||
|
playlists.retain_mut(|p| p.data.persistent_playlist_id != pl_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if let XSomeList::Playlists(playlists) = &mut self.find_dataset(3).child {
|
||||||
|
playlists.retain_mut(|p| p.data.persistent_playlist_id != pl_id);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user