Saving changes

This commit is contained in:
phoenix
2025-04-03 23:10:51 -04:00
parent 2eca65b464
commit 3910ad23c3
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -446,7 +446,7 @@ impl CommitManager {
audio_type: String::from("FLAC"), audio_type: String::from("FLAC"),
directory: source_directory.clone(), directory: source_directory.clone(),
filename: filename, filename: filename,
user_id: -1, user_id: uuid::Uuid::nil(),
data: Vec::new(), data: Vec::new(),
date_created: String::new(), date_created: String::new(),
}); });
-1
View File
@@ -22,7 +22,6 @@ fn retrieve_url_reg(api: &models::api::API) -> String {
fn retrieve_url_with_id(api: &models::api::API, id: &uuid::Uuid) -> String { fn retrieve_url_with_id(api: &models::api::API, id: &uuid::Uuid) -> String {
let mut url: String = String::from(&api.url); let mut url: String = String::from(&api.url);
url += &String::from("/");
url += &String::from("api/"); url += &String::from("api/");
url += &String::from(&api.version); url += &String::from(&api.version);
url += &String::from("/"); url += &String::from("/");
+2
View File
@@ -31,6 +31,8 @@ impl Download {
let url = syncers::common::retrieve_url(&self.api, true, &song.id); let url = syncers::common::retrieve_url(&self.api, true, &song.id);
let access_token = token.bearer_token(); let access_token = token.bearer_token();
println!("Url: {:?}", url);
let client = reqwest::Client::builder().build().unwrap(); let client = reqwest::Client::builder().build().unwrap();
match client match client