aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-03-27 04:46:26 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-03-27 04:46:26 +0000
commite8bd0e3644070d2ea9f8fc309e725d9b9b3d0bd6 (patch)
treebf8c0d50dbd1c579b5fc6a671a1051aabb20a4a4 /src
parentd9d8b5d6509433d7c9ef23d9d0279fb65926785b (diff)
downloadyouload-main.tar.gz
youload-main.tar.bz2
youload-main.zip
Diffstat (limited to 'src')
-rw-r--r--src/util.py10
-rw-r--r--src/view/app.py2
2 files changed, 3 insertions, 9 deletions
diff --git a/src/util.py b/src/util.py
index cd3a6f0..99c9c03 100644
--- a/src/util.py
+++ b/src/util.py
@@ -1,6 +1,7 @@
import os
import ffmpeg
import subprocess
+from urllib.request import urlretrieve
from kivy.utils import platform
from kivy.app import App
@@ -12,11 +13,4 @@ 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:
- 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)
+ ffmpeg.input(input_file).output(output_file).run()
diff --git a/src/view/app.py b/src/view/app.py
index c1b04e0..5c6ce6f 100644
--- a/src/view/app.py
+++ b/src/view/app.py
@@ -94,7 +94,7 @@ class YouloadApp(App):
if platform == "android":
from android.permissions import request_permissions, Permission
- request_permissions([Permission.WRITE_EXTERNAL_STORAGE, Permission.READ_EXTERNAL_STORAGE])
+ request_permissions([Permission.INTERNET, Permission.WRITE_EXTERNAL_STORAGE, Permission.READ_EXTERNAL_STORAGE])
def uid_url_input(self, instance, value):
self.url = value