Retrieve songs (#66)
* Able to retrieve songs * Updated readme * Removed unused import * Code formatting * Version bump
This commit was merged in pull request #66.
This commit is contained in:
@@ -251,10 +251,11 @@ impl CommitManager {
|
||||
let api = prsr.retrieve_api(parsers::api_parser::APIType::Main);
|
||||
|
||||
let mut repo = syncers::retrieve_records::RetrieveRecords { api: api.clone() };
|
||||
let result_fut = repo.get_all_songs(&token);
|
||||
|
||||
match Runtime::new().unwrap().block_on(result_fut) {
|
||||
match repo.get_all_songs(&token).await {
|
||||
Ok(o) => {
|
||||
println!("Songs");
|
||||
println!("=====");
|
||||
for song in o {
|
||||
println!("Title: {:?}", song.title);
|
||||
println!("Artist: {:?}", song.artist);
|
||||
|
||||
Reference in New Issue
Block a user