Initial commit, prod ready
This commit is contained in:
13
backend/config.py
Normal file
13
backend/config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Where downloaded music is stored — must match your Plex library path
|
||||
MUSIC_DIR = Path(os.getenv("MUSIC_DIR", "./Music")).resolve()
|
||||
MUSIC_DIR.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# Temp working directory for in-progress downloads
|
||||
TEMP_DIR = Path(os.getenv("TEMP_DIR", "./tmp")).resolve()
|
||||
TEMP_DIR.mkdir(parents=True, exist_ok=True)
|
||||
Reference in New Issue
Block a user