Fix examples

This commit is contained in:
Roderick van Domburg 2021-12-07 23:52:34 +01:00
parent 0e2686863a
commit 87f6a78d3e
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451
2 changed files with 9 additions and 2 deletions

View file

@ -30,7 +30,7 @@ async fn main() {
let plist = Playlist::get(&session, plist_uri).await.unwrap();
println!("{:?}", plist);
for track_id in plist.tracks {
for track_id in plist.tracks() {
let plist_track = Track::get(&session, track_id).await.unwrap();
println!("track: {} ", plist_track.name);
}

View file

@ -29,9 +29,16 @@ pub mod track;
mod util;
pub mod video;
use error::MetadataError;
pub use error::MetadataError;
use request::RequestResult;
pub use album::Album;
pub use artist::Artist;
pub use episode::Episode;
pub use playlist::Playlist;
pub use show::Show;
pub use track::Track;
#[async_trait]
pub trait Metadata: Send + Sized + 'static {
type Message: protobuf::Message;