diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-27 03:52:56 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-27 03:52:56 +0000 |
commit | d9d8b5d6509433d7c9ef23d9d0279fb65926785b (patch) | |
tree | 4e2db3814a2617198e2c449e167a12b867d44fdf /src | |
parent | 89dd61507c1f21f144bdce412db1633c6073aee5 (diff) | |
download | youload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.tar.gz youload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.tar.bz2 youload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.zip |
Working on something wack
Diffstat (limited to 'src')
-rw-r--r-- | src/util.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/util.py b/src/util.py index 7b012a2..cd3a6f0 100644 --- a/src/util.py +++ b/src/util.py @@ -1,6 +1,6 @@ import os -import stat import ffmpeg +import subprocess from kivy.utils import platform from kivy.app import App @@ -12,4 +12,11 @@ def get_default_download_dir() -> str: return os.path.join(str(Path.home()), "Downloads") def convert_mp4_to_mp3(input_file: str, output_file: str) -> None: - ffmpeg.input(input_file).output(output_file).run() + current_directory = os.getcwd() + ffmpeg_binary_path = os.path.join(current_directory, 'ffmpeg') + + #os.chmod(ffmpeg_binary_path, 0o775) + #subprocess.call([ffmpeg_binary_path, "-i", input_file, output_file]) + print(os.listdir()) + + #ffmpeg.input(input_file).output(output_file).run(cmd=ffmpeg_binary_path) |