summaryrefslogtreecommitdiffstats
path: root/src/youtube_dl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/youtube_dl.rs')
-rw-r--r--src/youtube_dl.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/youtube_dl.rs b/src/youtube_dl.rs
index 1eff302..ac4635a 100644
--- a/src/youtube_dl.rs
+++ b/src/youtube_dl.rs
@@ -1,6 +1,6 @@
use std::process::{Command, Stdio};
-use log::{debug};
+use log::debug;
pub fn get_audio_download_url(uri: String) -> Result<(String, String), String> {
let ytdl_args = [
@@ -20,9 +20,7 @@ pub fn get_audio_download_url(uri: String) -> Result<(String, String), String> {
debug!("yt-dl command: {:?}", cmd);
- let ytdl_output = cmd
- .output()
- .unwrap();
+ let ytdl_output = cmd.output().unwrap();
let output = String::from_utf8(ytdl_output.stdout.clone()).unwrap();
@@ -35,4 +33,4 @@ pub fn get_audio_download_url(uri: String) -> Result<(String, String), String> {
let title = lines[1].to_owned();
Ok((url, title))
-} \ No newline at end of file
+}