From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:02:50 +0000 (-0400) Subject: clean stuff up X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.css?a=commitdiff_plain;h=bbba16eeff81209b49cca5bd68e5952305b985f4;p=youtube-downloader.git clean stuff up --- diff --git a/README.md b/README.md index e366830..d94755b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ downloads the audio and video and stitches it together in the current directory. # TODO: - [x] add video only -- [ ] add audio + video separate +- [x] add audio + video separate - [ ] add stitched together - [x] add force replace - [ ] add album name diff --git a/ytdl/__pycache__/funcmodule.cpython-312.pyc b/ytdl/__pycache__/funcmodule.cpython-312.pyc index 58dc630..d4a2042 100644 Binary files a/ytdl/__pycache__/funcmodule.cpython-312.pyc and b/ytdl/__pycache__/funcmodule.cpython-312.pyc differ diff --git a/ytdl/funcmodule.py b/ytdl/funcmodule.py index 8135523..9e68365 100644 --- a/ytdl/funcmodule.py +++ b/ytdl/funcmodule.py @@ -106,8 +106,6 @@ def download_double_stream(yt, filename,thumbnail_filename, mode): if mode == '-av': for suffix, stream in [(" (audio only)", audio_default_filename), (" (video only)", video_default_filename)]: - print(suffix, stream, "jahdnfjlkahwejklfaw") - command = [ 'ffmpeg', '-i', stream, @@ -124,6 +122,9 @@ def download_double_stream(yt, filename,thumbnail_filename, mode): '-y' ] subprocess.run(command) + elif mode == '-d': + pass + # clean up tmp files os.remove(thumbnail_filename)