diff --git a/schemas/config.schema.json b/schemas/config.schema.json index 7f288b7..0c639fe 100644 --- a/schemas/config.schema.json +++ b/schemas/config.schema.json @@ -152,7 +152,7 @@ "type": "null" } ], - "default": null, + "default": ".temp/browser-profile", "description": "See https://github.com/chromium/chromium/blob/main/docs/user_data_dir.md", "title": "User Data Dir" }, diff --git a/src/kleinanzeigen_bot/model/config_model.py b/src/kleinanzeigen_bot/model/config_model.py index a4fab8f..552a49a 100644 --- a/src/kleinanzeigen_bot/model/config_model.py +++ b/src/kleinanzeigen_bot/model/config_model.py @@ -80,7 +80,7 @@ class DownloadConfig(ContextualModel): class BrowserConfig(ContextualModel): arguments:List[str] = Field( - default_factory = list, + default_factory = lambda: ["--user-data-dir=.temp/browser-profile"], description = "See https://peter.sh/experiments/chromium-command-line-switches/" ) binary_location:str | None = Field( @@ -93,7 +93,7 @@ class BrowserConfig(ContextualModel): ) use_private_window:bool = True user_data_dir:str | None = Field( - default = None, + default = ".temp/browser-profile", description = "See https://github.com/chromium/chromium/blob/main/docs/user_data_dir.md" ) profile_name:str | None = None