From b8f74580808f1e8c02088d4b68c39e30897c96cd Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Sun, 17 Mar 2024 22:11:40 -0600 Subject: having a hard time with mp4 to mp3 on android --- buildozer.spec | 2 +- src/model/youload_playlist.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/buildozer.spec b/buildozer.spec index 33bc0f7..db6d3a5 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -37,7 +37,7 @@ version = 1.2 # (list) Application requirements # comma separated e.g. requirements = sqlite3,kivy -requirements = python3,kivy,pytube,ffmpeg-python +requirements = python3,kivy,pytube,ffmpeg,ffmpeg-python # (str) Custom source folders for requirements # Sets custom source for any requirements with recipes diff --git a/src/model/youload_playlist.py b/src/model/youload_playlist.py index 1856c64..c147041 100644 --- a/src/model/youload_playlist.py +++ b/src/model/youload_playlist.py @@ -44,7 +44,7 @@ class YouLoadPlayList: # Download this fucker. if self.download_type == "default": - video.streams.first().download(output_path=self.folder_name, filename_prefix=filename_prefix) + # video.streams.first().download(output_path=self.folder_name, filename_prefix=filename_prefix) elif self.download_type == "highest": video.streams.get_highest_resolution().download(output_path=self.folder_name, filename_prefix=filename_prefix) elif self.download_type == "lowest": @@ -58,6 +58,7 @@ class YouLoadPlayList: # Remove mp4 file. os.remove(file_path) + else: video.streams.get_by_resolution(self.download_type).download(output_path=self.folder_name, filename_prefix=filename_prefix) -- cgit v1.2.3