Reads from the changed config file name and removed some variable declaration that is no longer in use.

This commit is contained in:
2017-11-18 23:33:20 +01:00
parent 519222ec63
commit bc826db4de

View File

@@ -9,14 +9,11 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
def getConfig():
config = configparser.ConfigParser()
config_dir = os.path.join(BASE_DIR, 'config.example.ini')
config_dir = os.path.join(BASE_DIR, 'config.ini')
config.read(config_dir)
jackett_host = config['JACKETT']['HOST']
jackett_use_ssl = config['JACKETT']['SSL']
return config
# This should be done front_end!
# I.E. filtering like this should be done in another script
# and should be done with the shared standard for types.