0.1.12 upd
This commit is contained in:
parent
4204fdcda8
commit
cd2fa25ae7
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ impl XPlaylist {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
false
|
||||||
});
|
});
|
||||||
self.args.push(XPlArgument::String(XArgument { arg_type: id, val }));
|
self.args.push(XPlArgument::String(XArgument { arg_type: id, val }));
|
||||||
}
|
}
|
||||||
@ -202,9 +202,9 @@ impl XDatabase {
|
|||||||
1
|
1
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_track(&mut self, id: u32) -> Option<&XTrackItem> {
|
pub fn get_track(&mut self, id: u32) -> Option<XTrackItem> {
|
||||||
if let XSomeList::TrackList(tracks) = &mut self.find_dataset(1).child {
|
if let XSomeList::TrackList(tracks) = &mut self.find_dataset(1).child {
|
||||||
return tracks.iter().find(|t| t.data.unique_id == id)
|
return tracks.iter().find(|t| t.data.unique_id == id).cloned()
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user