From 7b84bccefe56a893c716dfc41130a6f81657db35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 12 Dec 2019 14:10:14 -0500 Subject: fix segmentation fault in 'Detect All Available Formats' --- hypervideo_gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hypervideo_gui.py') 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 -- cgit v1.2.3