made skipped songs log to debug instead

This commit is contained in:
Gvidas Juknevičius 2024-04-08 03:12:07 +03:00
parent 9d13a08e89
commit f4e8f4aca0
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 3 additions and 2 deletions

View File

@ -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"},

View File

@ -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);