diff --git a/pyproject.toml b/pyproject.toml index e22a35f..cb8a5c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "srtify" -version = "0.1.0" +version = "0.1.1" description = "CLI tool for translating SRT files using Gemini AI" readme = "README.md" requires-python = ">=3.12" diff --git a/src/srtify/core/settings.py b/src/srtify/core/settings.py index be6bde4..00650f9 100644 --- a/src/srtify/core/settings.py +++ b/src/srtify/core/settings.py @@ -1,13 +1,14 @@ import json from pathlib import Path +from platformdirs import user_documents_path from typing import Tuple, Optional from srtify.core.models import AppSettings, ApiConfig, DirectoryConfig, TranslationConfig from srtify.utils.paths import get_config_path home_dir = Path.home() -DEFAULT_INPUT_DIR = str(home_dir / "Documents" / "Subtitles") -DEFAULT_OUTPUT_DIR = str(home_dir / "Documents" / "Subtitles" / "Translated") +DEFAULT_INPUT_DIR = str(user_documents_path() / "Subtitles") +DEFAULT_OUTPUT_DIR = str(user_documents_path() / "Subtitles" / "Translated") class SettingsManager: