Browse Source

Check if youtube-dl exist before downloading

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
89d66e72cb
1 changed files with 3 additions and 3 deletions
  1. 6
      youtube_dl_gui/YoutubeDLGUI.py

6
youtube_dl_gui/YoutubeDLGUI.py

@ -108,9 +108,6 @@ class MainFrame(wx.Frame):
# init urlList for evt_text on self.trackList
self.urlList = []
# check & update libraries (youtube-dl)
self.check_if_youtube_dl_exist()
def InitGUI(self):
self.panel = wx.Panel(self)
mainBoxSizer = wx.BoxSizer(wx.VERTICAL)
@ -209,6 +206,9 @@ class MainFrame(wx.Frame):
self.statusList._clear_list()
self.load_tracklist(self.trackList.GetValue().split('\n'))
if not self.statusList._is_empty():
self.check_if_youtube_dl_exist()
if self.updateThread is not None:
self.updateThread.join()
options = YoutubeDLInterpreter(self.optionsList, YOUTUBE_DL_FILENAME).get_options()
self.downloadThread = DownloadManager(
options,

Loading…
Cancel
Save