Skip to content
Open
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
12 changes: 12 additions & 0 deletions shelfmark/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,18 @@ def download_source_settings() -> list[SettingsField]:
min_value=30,
max_value=1800,
),
NumberField(
key="AA_PAGE_LIMIT",
label="Max Anna's Archive Results Pages",
description=(
"Maximum number of results pages to fetch per manual search. "
"Each page returns 50 books (up to 500 total). "
"Set to 1 for first-page only, up to 10 for full 500 results."
),
default=1,
min_value=1,
max_value=10,
),
HeadingField(
key="content_type_routing_heading",
title="Content-Type Routing",
Expand Down
2 changes: 1 addition & 1 deletion shelfmark/download/warmup.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def run_warmup() -> bool:
from shelfmark.core.models import SearchFilters
from shelfmark.release_sources.direct_download import search_books

results, _ = search_books(query, SearchFilters())
results, _, _ = search_books(query, SearchFilters())
except Exception:
# Broad by design: a warm-up must never take the app down, and the source
# raises everything from network errors to parse failures.
Expand Down
2 changes: 2 additions & 0 deletions shelfmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,8 @@ def _search_source_releases(
info["search_type"] = source_instance.last_search_type
if hasattr(source_instance, "total_results"):
info["total_results"] = source_instance.total_results
if hasattr(source_instance, "filtered_out_count"):
info["filtered_out_count"] = source_instance.filtered_out_count
if info:
search_info[source_name] = info

Expand Down
Loading
Loading