deps and envs
This commit is contained in:
@@ -12,12 +12,16 @@ from pathlib import Path
|
||||
from typing import Dict, List, Optional, Any, Union
|
||||
from dataclasses import dataclass, asdict
|
||||
import shutil
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
|
||||
@dataclass
|
||||
class VideoPlayerConfig:
|
||||
"""Video Player Configuration"""
|
||||
# Video settings
|
||||
video_folder: str = "/home/pi/Videos"
|
||||
video_folder: str = os.getenv("VIDEO_FOLDER", "/home/pi/Videos")
|
||||
supported_formats: List[str] = None
|
||||
default_channel: int = 1
|
||||
auto_play: bool = True
|
||||
|
||||
Reference in New Issue
Block a user