From 8209418fa8d8feaeefa6deb173ae312e0656e30c Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 14 May 2014 14:36:07 +0300 Subject: [PATCH] Don't print statistics if successful downloads are 0 --- youtube_dl_gui/YoutubeDLGUI.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index f2ff575..a0ea9b3 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/youtube_dl_gui/YoutubeDLGUI.py @@ -195,6 +195,10 @@ class MainFrame(wx.Frame): open_dir(self.opt_manager.options['save_path']) def fin_message(self): + if self.successful_downloads == 0: + self.status_bar_write('Done') + return + current_time = time() dtime = get_time(current_time - self.timer)