diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-12 14:10:14 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-12 14:10:14 -0500 |
commit | 7b84bccefe56a893c716dfc41130a6f81657db35 (patch) | |
tree | 29742be85d2f46fa872e88e17648f256d7d8d091 /hypervideo_gui.py | |
parent | 05d51722f2fcec63896acd8366c4bdddb43a1108 (diff) | |
download | hypervideo-gui-7b84bccefe56a893c716dfc41130a6f81657db35.tar.lz hypervideo-gui-7b84bccefe56a893c716dfc41130a6f81657db35.tar.xz hypervideo-gui-7b84bccefe56a893c716dfc41130a6f81657db35.zip |
fix segmentation fault in 'Detect All Available Formats'
Diffstat (limited to 'hypervideo_gui.py')
-rw-r--r-- | hypervideo_gui.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hypervideo_gui.py b/hypervideo_gui.py index 803545f..4830004 100644 --- a/hypervideo_gui.py +++ b/hypervideo_gui.py @@ -5,6 +5,7 @@ import os import re import threading import json +import time import hypervideo @@ -255,11 +256,12 @@ class App(QMainWindow): self.statusBar().showMessage('Formats not found') else: item_list = self.default_formats_menu_items[0:2] - data_list = [f['format_id'] + ' - ' + f['ext'] for f in formats] + data_list = ['%s - %s' % (f['format_id'], f['ext']) for f in formats] item_list.extend(data_list) self.populate_video_format_combobox(item_list) - self.statusBar().showMessage('Finished Downloading Video Formats', msecs=0) self.video_format_combobox.setCurrentIndex(0) + time.sleep(.300) + self.statusBar().showMessage('Finished Downloading Video Formats', msecs=0) # check if is valid url # should probably be reworked to be compatible with non-YouTube websites |