mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-12-04 17:30:16 +00:00
refactor for docker build
This commit is contained in:
parent
319fa1713d
commit
0880d20359
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user