From 4dfd786677c729fbd756f1d0726b861a46ea9a60 Mon Sep 17 00:00:00 2001 From: JuanEGamerYT Date: Thu, 8 Feb 2024 14:12:09 -0300 Subject: [PATCH] Update youtube_downloader.py --- youtube_downloader.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_downloader.py b/youtube_downloader.py index 521d66b..52cac80 100644 --- a/youtube_downloader.py +++ b/youtube_downloader.py @@ -30,12 +30,11 @@ def download_audio_or_video(): if selected_index: selected_id = video_ids[selected_index[0]] video_url = f"https://www.youtube.com/watch?v={selected_id}" - ffmpeg_path = "FFmpeg/bin" # Carpeta FFmpeg en el mismo directorio que el archivo selected_format = format_combobox.get() if selected_format == "webm": - download_command = f"youtube-dl --ffmpeg-location {ffmpeg_path} -o {output_directory}%(title)s.%(ext)s -f bestvideo {video_url}" + download_command = f"youtube-dl -o {output_directory}%(title)s.%(ext)s -f bestvideo {video_url}" else: - download_command = f"youtube-dl --ffmpeg-location {ffmpeg_path} -o {output_directory}%(title)s.%(ext)s -x --audio-format {selected_format} {video_url}" + download_command = f"youtube-dl -o {output_directory}%(title)s.%(ext)s -x --audio-format {selected_format} {video_url}" subprocess.Popen(download_command, shell=True) check_for_malware()