1
0
forked from Mirrors/itch-dl

Allow filtering downloaded files by glob/regex

This commit is contained in:
Ryszard Knop
2025-01-27 12:13:47 +01:00
parent 75196f537c
commit 346486c563
3 changed files with 30 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ class Settings(BaseModel):
api_key: Optional[str] = None
user_agent: str = f"python-requests/{requests.__version__} itch-dl/{__version__}"
filter_files_glob: Optional[str] = None
filter_files_regex: Optional[str] = None
def create_and_get_config_path() -> str:
"""Returns the configuration directory in the appropriate