mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
chore: translation handling for log messages (#787)
This commit is contained in:
@@ -51,7 +51,7 @@ class AdExtractor(WebScrapingMixin):
|
||||
|
||||
# create sub-directory for ad(s) to download (if necessary):
|
||||
download_dir = xdg_paths.get_downloaded_ads_path(self.installation_mode)
|
||||
LOG.info(_("Using download directory: %s"), download_dir)
|
||||
LOG.info("Using download directory: %s", download_dir)
|
||||
# Note: xdg_paths.get_downloaded_ads_path() already creates the directory
|
||||
|
||||
# Extract ad info and determine final directory path
|
||||
@@ -447,7 +447,7 @@ class AdExtractor(WebScrapingMixin):
|
||||
return f"{category_ids[0]}/{category_ids[0]}"
|
||||
|
||||
# Fallback to legacy selectors in case the breadcrumb structure is unexpected.
|
||||
LOG.debug(_("Falling back to legacy breadcrumb selectors; collected ids: %s"), category_ids)
|
||||
LOG.debug("Falling back to legacy breadcrumb selectors; collected ids: %s", category_ids)
|
||||
fallback_timeout = self._effective_timeout()
|
||||
try:
|
||||
category_first_part = await self.web_find(By.CSS_SELECTOR, "a:nth-of-type(2)", parent = category_line)
|
||||
|
||||
Reference in New Issue
Block a user