async fn run_youtubedl(&self, ytd: &YoutubeDL, url: &str) -> Result<PathBuf, String> {
        // start download
        let result = match ytd.download() {
            Ok(result) => result,
            Err(_) => {
                return Err(format!("Couldn't download {}", url));
            }
        };
        Ok(result.output_dir().clone())
    }
///
/// runs the youtubedl thread and prints eny error via the logger
///
runs the youtubedl thread and prints eny error via the logger
runs the youtubedl thread and prints eny error via the logger
async fn run_youtubedl(&self, ytd: &YoutubeDL, url: &str) -> Result<PathBuf, String> {
        // start download
        let result = match ytd.download() {
            Ok(result) => result,
            Err(_) => {
                return Err(format!("Couldn't download {}", url));
            }
        };
        Ok(result.output_dir().clone())
    }
async fn run_youtubedl ( & self , ytd : & YoutubeDL , url : & str ) -> Result < PathBuf , String > { // start download let result = match ytd . download ( ) { Ok ( result ) => result , Err ( _ ) => { return Err ( format ! ( " " url ) ) ; } } ; Ok ( result . output_dir ( ) . clone ( ) ) }
runs the youtubedl thread and prints eny error via the logger
runs the youtubedl thread and prints eny error via the logger
&self
ytd
&YoutubeDL
url
&str
&self
ytd
&YoutubeDL
url
&str