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:
KD
2025-08-30 12:10:03 -04:00
committed by GitHub
parent ec0cbd7da0
commit e109789b18
6 changed files with 26 additions and 11 deletions
+3 -2
View File
@@ -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);