From ced3b0763b49cc9b2e6cebfcad31b83efe3f3a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 10 Dec 2019 16:39:58 -0500 Subject: cleanup code --- hypervideo_gui.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hypervideo_gui.py') diff --git a/hypervideo_gui.py b/hypervideo_gui.py index 5587ef3..a6672a4 100644 --- a/hypervideo_gui.py +++ b/hypervideo_gui.py @@ -66,7 +66,6 @@ class App(QMainWindow): msg.setText("

Written with Python3 and PyQt5
" "Version: %s
License: %s

" % (__version__, __license__)) msg.setIcon(QMessageBox.Information) - # msg.setInformativeText("Version: %s" % __version__) x = msg.exec_() @@ -99,8 +98,6 @@ class App(QMainWindow): urlEntryLabel = QLabel('Enter URL:') self.urlEntryText = QLineEdit() self.urlEntryText.setPlaceholderText('https://invidio.us/watch?v=8SdPLG-_wtA') - # set default video to download - # self.urlEntryText.setText('https://invidio.us/watch?v=8SdPLG-_wtA') # set up callback to update video formats when URL is changed self.urlEntryText.textChanged.connect(self.resetVideoFormats) @@ -205,9 +202,9 @@ class App(QMainWindow): # download the video in daemon thread if re.match(self._VALID_URL, str(self.url_entry())) is None: - self.statusBar().showMessage('Please add a URL...') # update status bar + self.statusBar().showMessage('Please add a URL...') else: - self.statusBar().showMessage('Downloading Video...') # update status bar + self.statusBar().showMessage('Downloading Video...') thread = threading.Thread(target=downloadVideo_thread_helper, args=(self, ydl_opts, )) thread.daemon = True thread.start() -- cgit v1.2.3