Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Move from --assets to --dl CLI param for code clarity (#68)
- Fix bad favicon paths (#68)
- Replace axios with fetch API and move config.json to a relative URL (#75)
- Create ZIM alias instead of redirects for tiles (#53)

## [0.1.1] - 2026-03-10

Expand Down
8 changes: 5 additions & 3 deletions scraper/src/maps2zim/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from typing import Any
from urllib.parse import urlparse

from libzim.writer import Hint
from pydantic import BaseModel
from schedule import every, run_pending
from zimscraperlib.download import save_large_file
Expand Down Expand Up @@ -983,9 +984,10 @@ def _write_tiles_to_zim(
should_compress=True,
)

# Create redirect from tile to dedupl
creator.add_redirect(tile_path, dedupl_path)

# Create alias from tile to dedupl
creator.add_alias(
tile_path, "", dedupl_path, hints={Hint.FRONT_ARTICLE: False}
)
written_tiles += 1

# Log progress every LOG_EVERY_SECONDS
Expand Down
Loading