aboutsummaryrefslogtreecommitdiffstats
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
parentd9d8b5d6509433d7c9ef23d9d0279fb65926785b (diff)
downloadyouload-release1.2.tar.gz
youload-release1.2.tar.bz2
youload-release1.2.zip
-rw-r--r--buildozer.spec4
-rw-r--r--src/util.py10
-rw-r--r--src/view/app.py2
3 files changed, 5 insertions, 11 deletions
diff --git a/buildozer.spec b/buildozer.spec
index e28c185..56185ae 100644
--- a/buildozer.spec
+++ b/buildozer.spec
@@ -13,7 +13,7 @@ package.domain = nate.youload
source.dir = src
# (list) Source files to include (let empty to include all the files)
-source.include_exts = py,png,jpg,kv,atlas,ffmpeg
+source.include_exts = py,png,jpg,kv,atlas
# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
@@ -95,7 +95,7 @@ fullscreen = 0
# (list) Permissions
# (See https://python-for-android.readthedocs.io/en/latest/buildoptions/#build-options-1 for all the supported syntaxes and properties)
-android.permissions = INTERNET, WRITE_EXTERNAL_STORAGE
+android.permissions = INTERNET,WRITE_EXTERNAL_STORAGE,READ_EXTERNAL_STORAGE
# (list) features (adds uses-feature -tags to manifest)
#android.features = android.hardware.usb.host
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