diff --git a/aider/scrape.py b/aider/scrape.py index 2fbbd35a4..1044468dd 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -94,16 +94,16 @@ class Scraper: """ if self.playwright_available: - content = self.scrape_with_playwright(url) + content, mime_type = self.scrape_with_playwright(url) else: - content = self.scrape_with_httpx(url) + content, mime_type = self.scrape_with_httpx(url) if not content: self.print_error(f"Failed to retrieve content from {url}") return None - # Check if the content is HTML - if content.strip().startswith(('