From ce899d7f51975e6ac86d9350a9e90205f21914dd Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Tue, 26 Mar 2024 15:18:28 -0600 Subject: About to start something new --- src/model/youload_playlist.py | 1 - src/view/app.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3