diff --git a/youtube_dl_gui/optionsmanager.py b/youtube_dl_gui/optionsmanager.py index 7287ca2..23ef30a 100644 --- a/youtube_dl_gui/optionsmanager.py +++ b/youtube_dl_gui/optionsmanager.py @@ -5,8 +5,8 @@ from __future__ import unicode_literals +import os import json -import os.path from .utils import ( os_path_expanduser, @@ -303,6 +303,12 @@ class OptionsManager(object): 'disable_update': False } + # Set the youtubedl_path again if the disable_update option is set + new_path = '/usr/bin' + + if self.options['disable_update'] and os.name != 'nt' and os.path.exists(new_path): + self.options['youtubedl_path'] = new_path + def load_from_file(self): """Load options from settings file. """ if not os_path_exists(self.settings_file):