From ccd52856dab8a831a060695714c613b76fe68609 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 26 Mar 2014 19:30:16 +0200 Subject: [PATCH] Check youtube-dl path before downloading --- youtube_dl_gui/YoutubeDLGUI.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index d4ba9df..ffd9883 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/youtube_dl_gui/YoutubeDLGUI.py @@ -185,6 +185,8 @@ class MainFrame(wx.Frame): self.urlList = [] def start_download(self, trackList): + self.check_update_path() + self.check_if_youtube_dl_exist() self.statusList._clear_list() for url in trackList: if url != '': @@ -337,7 +339,7 @@ class UpdatePanel(wx.Panel): self.optionsList = optionsList wx.Panel.__init__(self, parent) - wx.StaticText(self, -1, 'Update Path (If you edit this value restart youtube-dlG)', (25, 20)) + wx.StaticText(self, -1, 'Update Path (Should point where youtube-dl is)', (25, 20)) self.updatePathBox = wx.TextCtrl(self, -1, pos=(20, 40), size=(450, -1)) self.autoUpdateChk = wx.CheckBox(self, -1, 'Auto Update', (25, 80))