diff options
-rw-r--r-- | hypervideo_gui.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hypervideo_gui.py b/hypervideo_gui.py index a841eb2..f2e832d 100644 --- a/hypervideo_gui.py +++ b/hypervideo_gui.py @@ -204,7 +204,8 @@ class App(QMainWindow): # grab video format from the dropdown string: ie. "135 - some video metadata here" -> "135" video_format = self.videoFormatCombobox.currentText()[0:self.videoFormatCombobox.currentText().find('-')-1] # set output path/format - outformat = os.path.join(self.outputEntryCombobox.currentText(), r'%(title)s.f%(format_id)s.%(ext)s') + outformat = os.path.join(self.outputEntryCombobox.currentText(), + r'%(title)s.f%(format_id)s.%(ext)s') ydl_opts = { 'format': video_format, 'outtmpl': outformat, @@ -228,6 +229,7 @@ class App(QMainWindow): ''' Grabs the available video formats. Intended to be run as background thread. ''' self.options = { + 'socket_timeout': 30, 'format': 'best', 'noplaylist': True, # only download single song, not playlist } |