diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-10 16:39:58 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-10 16:39:58 -0500 |
commit | ced3b0763b49cc9b2e6cebfcad31b83efe3f3a4b (patch) | |
tree | 26cbcda83f95c6c30140e21c6b93cbda8c238d7b /hypervideo_gui.py | |
parent | eee7a4e7c87ba3cac4df8056c551e380c6781ec7 (diff) | |
download | hypervideo-gui-ced3b0763b49cc9b2e6cebfcad31b83efe3f3a4b.tar.lz hypervideo-gui-ced3b0763b49cc9b2e6cebfcad31b83efe3f3a4b.tar.xz hypervideo-gui-ced3b0763b49cc9b2e6cebfcad31b83efe3f3a4b.zip |
cleanup code
Diffstat (limited to 'hypervideo_gui.py')
-rw-r--r-- | hypervideo_gui.py | 7 |
1 files changed, 2 insertions, 5 deletions
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("<p align='center'>Written with Python3 and PyQt5<br>" "Version: %s <br> License: %s </p>" % (__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() |