From 03c6e30b8d21a8eea0220ca3e82f423553f46992 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sat, 15 Oct 2016 20:05:48 +0300 Subject: [PATCH] Add 'selected_format' option --- youtube_dl_gui/optionsmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/optionsmanager.py b/youtube_dl_gui/optionsmanager.py index 903b86a..0eda2f7 100644 --- a/youtube_dl_gui/optionsmanager.py +++ b/youtube_dl_gui/optionsmanager.py @@ -207,6 +207,8 @@ class OptionsManager(object): selected_audio_formats (list): List that contains the selected audio formats to display on the main window. + selected_format (string): Current format selected on the main window. + """ #TODO Remove old options & check options validation self.options = { @@ -256,7 +258,8 @@ class OptionsManager(object): 'main_win_size': (710, 490), 'opts_win_size': (640, 270), 'selected_video_formats': [], - 'selected_audio_formats': [] + 'selected_audio_formats': [], + 'selected_format': '0' } def load_from_file(self):