Saving changes
This commit is contained in:
@@ -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(),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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("/");
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user