Cohvir 9ee9c91a2d
Fix #38, #57, Implement Config file (#58)
* style: correct some user messages and typos

* feat(config file): implement configuration settings

* style(config): improve config variables readability

* style(config params): config conformity fix

* feat(config): add config feature to variables

* feat(config): add config feature examples to README.md

* style: uniformity

* fix(subtitles): add subtitles to corresponding folder

* fix(tv-series subtitles folder name)
2024-03-04 22:34:36 +01:00

10 lines
309 B
Python

import json
from pathlib import Path
def load_config(file_path):
with open(file_path, 'r') as file:
config_file = json.load(file)
return config_file
config_path = Path(__file__).parent.parent.parent / 'config.json' # path for config.json (in root directory)
config = load_config(config_path)