25typedef enum : uint8_t {
32typedef enum : uint16_t {
ra8_err_t mdl_config_load(mdl_storage_t *storage, const char *path, mdl_site_t *out)
Load a site descriptor from a flat key=value file.
mdl_gov_cfg_t mdl_config_gov_cfg(const mdl_site_t *site)
Build the politeness-governor tunables for a loaded site descriptor.
mdl_chapter_order_t
How to order chapters extracted from a series page.
@ k_mdl_order_asc
Sort by the number parsed from the URL.
@ k_mdl_order_reverse
Reverse document order (newest-first -> old).
@ k_mdl_order_doc
Keep document order.
void mdl_config_apply_polite(mdl_site_t *site)
Raise a descriptor's per-request delay floors for --polite.
mdl_config_limits_t
Fixed field sizes for a site descriptor.
@ k_mdl_host_max
Host bytes.
@ k_mdl_attr_max
Image attribute name bytes.
@ k_mdl_match_max
Selector/substring field bytes.
@ k_mdl_contact_max
Operator contact string bytes.
@ k_mdl_search_url_max
Search/browse URL template bytes.
@ k_mdl_kind_max
"manga"/"manhwa"/... bytes.
@ k_mdl_name_max
Site display name bytes.
Jittered inter-request delay plus the per-host politeness governor.
Injected portable storage resources for downloader domain code.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Per-site politeness tunables the governor is initialised with.
One site's scraping rules (all data, no logic).
char chapter_number_selector[k_mdl_match_max]
Per-chapter number selector.
uint32_t chapter_delay_min
Inter-chapter spacing floor.
char browse_url[k_mdl_search_url_max]
Latest-updates page (no {q}).
char series_author_selector[k_mdl_match_max]
Series writer selector.
char kind[k_mdl_kind_max]
Content kind hint (reader mode).
uint32_t burst
Token-bucket capacity, in requests.
uint32_t rate_per_min
Sustained per-host request ceiling (0 = off).
char search_url[k_mdl_search_url_max]
Query template with a {q} slot.
uint32_t img_delay_max
Per-image spacing ceiling.
char reading_direction[k_mdl_kind_max]
ltr or rtl.
char name[k_mdl_name_max]
Human-readable site name.
uint32_t chapter_delay_max
Inter-chapter spacing ceiling.
char host[k_mdl_host_max]
Site host, e.g.
char contact[k_mdl_contact_max]
Operator contact for the UA.
char chapter_title_selector[k_mdl_match_max]
Per-chapter title selector.
char page_img_url_contains[k_mdl_match_max]
Keep only URLs with this.
char series_cover_selector[k_mdl_match_max]
Series cover-URL selector.
uint32_t backoff_base_ms
First backoff window on a 429/503.
char chapter_url_contains[k_mdl_match_max]
href must contain this.
uint32_t backoff_max_ms
Backoff-window ceiling.
char language[k_mdl_kind_max]
BCP-47 language tag.
char series_summary_selector[k_mdl_match_max]
Series synopsis selector.
char page_img_attr[k_mdl_attr_max]
Preferred attr (fallback other).
mdl_chapter_order_t chapter_order
Ordering to apply.
uint32_t img_delay_min
Per-image spacing floor.
char search_result_contains[k_mdl_match_max]
Series-link substring on results.
char series_artist_selector[k_mdl_match_max]
Series artist selector.
uint32_t max_inflight
Per-host in-flight request cap.
char chapter_url_prefix[k_mdl_search_url_max]
Absolute series-chapter prefix.
char series_title_selector[k_mdl_match_max]
Series display-title selector.
One non-reentrant downloader filesystem dependency bundle.