diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-26 21:18:28 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-26 21:18:28 +0000 |
commit | ce899d7f51975e6ac86d9350a9e90205f21914dd (patch) | |
tree | 636ce04a4a773a488d3bdec736ae071c1f983a8f | |
parent | 4357d90862544370fcd3c70c46e131ca8c49883c (diff) | |
download | youload-ce899d7f51975e6ac86d9350a9e90205f21914dd.tar.gz youload-ce899d7f51975e6ac86d9350a9e90205f21914dd.tar.bz2 youload-ce899d7f51975e6ac86d9350a9e90205f21914dd.zip |
About to start something new
-rw-r--r-- | src/model/youload_playlist.py | 1 | ||||
-rw-r--r-- | src/view/app.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/model/youload_playlist.py b/src/model/youload_playlist.py index 1f8dc46..1856c64 100644 --- a/src/model/youload_playlist.py +++ b/src/model/youload_playlist.py @@ -58,7 +58,6 @@ 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) diff --git a/src/view/app.py b/src/view/app.py index 587b9e9..4d4d400 100644 --- a/src/view/app.py +++ b/src/view/app.py @@ -8,6 +8,7 @@ from kivy.uix.label import Label from kivy import platform import threading +import traceback from model.youload_playlist import YouLoadPlayList from view.file_chooser import YouloadFileChooser @@ -135,14 +136,18 @@ class YouloadApp(App): except FileExistsError as e: self.download_status.text = "Folder already exists" self.downloads_display.text = repr(e) + self.downloads_display.text += "\n" + traceback.format_exc() except KeyError as e: self.download_status.text = "Error getting playlist" self.downloads_display.text = repr(e) + self.downloads_display.text += "\n" + traceback.format_exc() except AttributeError as e: self.download_status.text = "Download type not supported" self.downloads_display.text = repr(e) + self.downloads_display.text += "\n" + traceback.format_exc() except Exception as e: self.downloads_display.text = repr(e) + self.downloads_display.text += "\n" + traceback.format_exc() self.submit.text = "Download" self.is_downloading = False |