mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-11-03 04:26:59 +00:00
PDF watches were always forced onto html_requests. Now that puppeteer can capture the original PDF (useful when the session needs a real browser, Cloudflare etc), only fetchers without supports_pdf fall back - both at fetch time (resolve_content_fetcher) and in Watch.get_fetch_backend. Also save the content-type when a fetcher couldn't supply the PDF (it was only saved on success), otherwise watch.is_pdf never became true for URLs not ending in .pdf and the watch failed on every check instead of falling back to html_requests on the next one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>