feat: add constants

This commit is contained in:
2025-12-07 00:08:46 +01:00
parent df2ae17721
commit d3be27c70d

23
auditui/constants.py Normal file
View File

@@ -0,0 +1,23 @@
"""Shared constants for the Auditui application."""
from pathlib import Path
AUTH_PATH = Path.home() / ".config" / "auditui" / "auth.json"
CACHE_DIR = Path.home() / ".cache" / "auditui" / "books"
DOWNLOAD_URL = "https://cde-ta-g7g.amazon.com/FionaCDEServiceEngine/FSDownloadContent"
DEFAULT_CODEC = "LC_128_44100_stereo"
MIN_FILE_SIZE = 1024 * 1024
TABLE_COLUMNS = ("Title", "Author", "Length", "Progress")
TABLE_CSS = """
DataTable {
height: 1fr;
}
Static {
height: 1;
text-align: center;
background: $primary;
}
"""