diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-10 19:04:16 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-10 19:04:16 -0500 |
commit | 80d84737d51fcba4977fd4f18a7a6f17fca9589b (patch) | |
tree | 42f6d102677c9d0e9111e6444be9c697514d451b | |
parent | 4f58fec8d4d0527842f875e18718cec769eaa3ed (diff) | |
download | hypervideo-gui-80d84737d51fcba4977fd4f18a7a6f17fca9589b.tar.lz hypervideo-gui-80d84737d51fcba4977fd4f18a7a6f17fca9589b.tar.xz hypervideo-gui-80d84737d51fcba4977fd4f18a7a6f17fca9589b.zip |
fix conditional formats
-rw-r--r-- | hypervideo_gui.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hypervideo_gui.py b/hypervideo_gui.py index 310fa77..0b09433 100644 --- a/hypervideo_gui.py +++ b/hypervideo_gui.py @@ -232,14 +232,14 @@ class App(QMainWindow): return None # add formats to combobox - if format is None: + if formats is None: self.statusBar().showMessage('Formats not found') else: item_list = self.default_video_formats_menu_items[0:2] - item_list.extend([f['format_id'] + ' - ' + f['ext'] for f in formats]) + data_list = [f['format_id'] + ' - ' + f['ext'] for f in formats] + item_list.extend(data_list) self.populateVideoFormatCombobox(item_list) - self.statusBar().showMessage('Finished Downloading Video Formats') - # QTimer.singleShot(3000, lambda: self.videoFormatCombobox.setCurrentIndex(0)) + self.statusBar().showMessage('Finished Downloading Video Formats', msecs=0) self.videoFormatCombobox.setCurrentIndex(0) # check if is valid url |