made skipped songs log to debug instead
This commit is contained in:
parent
9d13a08e89
commit
f4e8f4aca0
|
@ -118,7 +118,8 @@
|
||||||
{"name": "Ka Tu Ka Vakare", "url": "https://www.youtube.com/watch?v=6SOS4ljHbJY"}
|
{"name": "Ka Tu Ka Vakare", "url": "https://www.youtube.com/watch?v=6SOS4ljHbJY"}
|
||||||
],
|
],
|
||||||
"lietuviskos/rave": [
|
"lietuviskos/rave": [
|
||||||
{"name": "VainHouse - Malunas Prie Kelio", "url": "https://www.youtube.com/watch?v=bbwuNjDXCiM"}
|
{"name": "VainHouse - Malunas Prie Kelio", "url": "https://www.youtube.com/watch?v=bbwuNjDXCiM"},
|
||||||
|
{"name": "Sokoledas - Mano Skonis Sokolado (Matuze & Arnisxd Remix)", "url": "https://www.youtube.com/watch?v=hb41bfQxiM0"}
|
||||||
],
|
],
|
||||||
"rusiskos": [
|
"rusiskos": [
|
||||||
{"name": "Topolini puh", "url": "https://www.youtube.com/watch?v=UUryvYF8tUs"},
|
{"name": "Topolini puh", "url": "https://www.youtube.com/watch?v=UUryvYF8tUs"},
|
||||||
|
|
|
@ -48,7 +48,7 @@ impl Downloader {
|
||||||
|
|
||||||
async fn download_song(&mut self, path: String, audio_format: &String, url: &String) -> anyhow::Result<()> {
|
async fn download_song(&mut self, path: String, audio_format: &String, url: &String) -> anyhow::Result<()> {
|
||||||
if PathBuf::from(&path).exists() {
|
if PathBuf::from(&path).exists() {
|
||||||
log::info!("File {path} exists, skipping");
|
log::debug!("File {path} exists, skipping");
|
||||||
return Ok(())
|
return Ok(())
|
||||||
}
|
}
|
||||||
let mut cmd = tokio::process::Command::new(&self.ytdlp_path);
|
let mut cmd = tokio::process::Command::new(&self.ytdlp_path);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user