mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00

* 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)
10 lines
309 B
Python
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) |