v1.0.8-beta.013 - refactor: restore core library features, request persistence, and performance logic
Re-integrates critical functionality lost during the major refactoring to restore system parity with the stable backup. This commit addresses UI state persistence, metadata accuracy, and automated library processing.
UI & Request System:
- Restore request state persistence: Modified the Request API to return detailed success data (requestId, status).
- Fix Discovery badges: Updated discovery logic to cross-reference search results with existing requests and library items to accurately display 'Pending' and 'In Library' badges.
- Sync on Request: Trigger immediate background metadata sync during volume requests to ensure issue-specific covers are available before import.
Library Management:
- Priority Scanner Matching: Updated the library scanner to prioritize matching local files to existing database records via issue number instead of generating random unmatched IDs. This fixes the 'In Library' badge detection.
- Metadata Accuracy: Resolved issue where imported comics defaulted to the series cover by ensuring files link to specific metadata records.
- Administrative Oversight: Re-integrated Audit Logging and Discord alerts for library cleanup and deletion events.
Automation & Performance:
- Automated Page Counting: Re-added zip-based page count extraction during the library scan to pre-calculate stats for .cbz and .zip files.
- Improved Search Logic: Restored Base64 link decoding and domain-specific filtering in the GetComics service to increase automated download success rates.
fix: resolve request button sync, path normalization, and GetComics automation
- Fix UI race condition where metadata sync would overwrite series names with Unknown
- Resolve issue targeting bug by passing explicit issue numbers from the Discover page to the automation engine
- Fix GetComics automation to robustly handle case-insensitive DOWNLOAD NOW buttons and base64-encoded internal redirects
- Implement fuzzy path matching in the Series API to correctly link physical files to database records during individual issue imports
- Update Library IDs API to use consistent numeric ID mapping for accurate In Library badge rendering
- Add manual retry functionality for GetComics articles flagged as MANUAL_DDL