Updated icarus-model #33

Merged
kdeng00 merged 28 commits from migrate_song_model into master 2025-03-24 19:34:38 -04:00
3 changed files with 15 additions and 8 deletions
Showing only changes of commit 083556ccd0 - Show all commits
+9 -2
View File
@@ -59,7 +59,10 @@ impl Upload {
new_song.songpath = p;
}
Err(er) => {
return Err(std::io::Error::new(std::io::ErrorKind::Other, "Error with song path"));
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"Error with song path",
));
}
}
let access_token = token.bearer_token();
@@ -179,7 +182,11 @@ impl Upload {
return url;
}
fn initialize_song(&self, song: &icarus_models::song::Song, album: &models::song::Album) -> Song {
fn initialize_song(
&self,
song: &icarus_models::song::Song,
album: &models::song::Album,
) -> Song {
let dur = song.duration.clone();
println!("Duration: {}", dur);