Skip to content

Expose the engine's sitemap, single-file and change-report options - #71

Merged
xroche merged 3 commits into
masterfrom
feat/sitemap-singlefile-changes
Jul 27, 2026
Merged

Expose the engine's sitemap, single-file and change-report options#71
xroche merged 3 commits into
masterfrom
feat/sitemap-singlefile-changes

Conversation

@xroche

@xroche xroche commented Jul 27, 2026

Copy link
Copy Markdown
Owner

The engine takes --sitemap/--sitemap-url, --single-file with a per-asset byte cap, and --changes, but nothing in the Windows GUI could reach them. Sitemap seeding goes on the Spider page next to the robots policy it piggybacks on. The two output options go on Log/Index/Cache, where -%M already sits as "Build a mail archive" and where the WARC toggle was moved for the same reason: those are what users will weigh them against.

Labels and tooltips read the engine's lang.def keys, so all 30 locales get them instead of the English-only text the WARC checkbox shipped with. The byte cap needs no bounds guard of its own, since the engine quietly keeps its default on anything it cannot parse. Both pages grew taller but stay under the Limits page's 198 units, so the property sheet is unchanged.

The engine side landed this morning: xroche/httrack#718, #720 and #721.

xroche and others added 3 commits July 26, 2026 22:22
The engine takes --sitemap/--sitemap-url, --single-file with a per-asset
byte cap, and --changes, but nothing in the GUI could reach them. Sitemap
seeding goes on the Spider page; the two output options go on Log/Index/
Cache, beside the WARC and mail-archive toggles users will weigh them
against. Each one is carried through the argv build and both profile paths.

Labels and tooltips read the engine's lang.def keys, so they follow the
installed language instead of staying English. SetDlgItemTextLang() keeps
the .rc caption when a language file predates a key, since LANGSEL()
returns "" for one it does not carry.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
A value restored from a profile never passes the dialog's validation, and the
engine aborts the whole mirror on an argument that is over-long or that starts
with a dash, which it reads as the argument being missing. Check both at argv
time, where every path goes through, measuring the UTF-8 bytes the engine will
actually receive rather than the ANSI characters here.

The sitemap checkbox now gates its address field too, so an unticked box cannot
seed a crawl through text left behind in the field, and an address given there
replaces the robots.txt probe instead of adding to it, which is what its tooltip
promises.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche merged commit a40d484 into master Jul 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant