refactor for docker build

This commit is contained in:
Simon 2023-07-27 22:38:49 +07:00
parent 319fa1713d
commit 0880d20359
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
9 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,9 @@ pip install -r requirements.txt
- `jf_url`: Full URL where Jellyfin is reachable
- `jf_token`: Jellyfin API token
Then run the script with python, e.g.
Then run the script from the main folder with python, e.g.
```python
python main.py
python app/main.py
```
## Install with Docker

View File

@ -20,8 +20,8 @@ def get_config() -> ConfigType:
def get_config_file() -> ConfigType | Literal[False]:
"""read config file if available"""
if os.path.exists("config.json"):
with open("config.json", "r", encoding="utf-8") as f:
if os.path.exists("./config.json"):
with open("./config.json", "r", encoding="utf-8") as f:
config_content: ConfigType = json.loads(f.read())
return config_content