Browse Source

Don't load options twice

pull/2076/head
Ruud 12 years ago
parent
commit
cbd217271d
  1. 3
      couchpotato/core/loader.py
  2. 2
      couchpotato/core/plugins/base.py

3
couchpotato/core/loader.py

@ -86,9 +86,6 @@ class Loader(object):
splitted = module.split('.')
for sub in splitted[1:]:
m = getattr(m, sub)
if hasattr(m, 'config'):
fireEvent('settings.options', splitted[-1] + '_config', getattr(m, 'config'))
except:
raise

2
couchpotato/core/plugins/base.py

@ -39,7 +39,7 @@ class Plugin(object):
http_failed_disabled = {}
def __new__(typ, *args, **kwargs):
new_plugin = super(Plugin, typ).__new__(typ, *args, **kwargs)
new_plugin = super(Plugin, typ).__new__(typ)
new_plugin.registerPlugin()
return new_plugin

Loading…
Cancel
Save