Reads from the changed config file name and removed some variable declaration that is no longer in use.
This commit is contained in:
@@ -9,14 +9,11 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|||||||
|
|
||||||
def getConfig():
|
def getConfig():
|
||||||
config = configparser.ConfigParser()
|
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)
|
config.read(config_dir)
|
||||||
jackett_host = config['JACKETT']['HOST']
|
|
||||||
jackett_use_ssl = config['JACKETT']['SSL']
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
# This should be done front_end!
|
# This should be done front_end!
|
||||||
# I.E. filtering like this should be done in another script
|
# I.E. filtering like this should be done in another script
|
||||||
# and should be done with the shared standard for types.
|
# and should be done with the shared standard for types.
|
||||||
|
|||||||
Reference in New Issue
Block a user