mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-07-26 05:46:59 +00:00
fix(lib): don't create '~' in $HOME (#166)
* fix(lib): don't create '~' in $HOME * throw an error wen fail to get home directory --------- Co-authored-by: arabian <a.tevg@ya.ru>
This commit is contained in:
@@ -59,7 +59,7 @@ async fn download_audio_from_url(uri: &str) -> Result<PathBuf> {
|
||||
.and_then(|n| n.to_str())
|
||||
.unwrap_or("downloaded_audio.mp3");
|
||||
|
||||
let save_path = ensure_pwsp_audio_dir().join(sanitized_file_name);
|
||||
let save_path = ensure_pwsp_audio_dir()?.join(sanitized_file_name);
|
||||
|
||||
let response = reqwest::get(target_url)
|
||||
.await?
|
||||
|
||||
Reference in New Issue
Block a user