- Fix Redis cache async handling by adding await to cache.get() calls
- Refactor request_key management into separate ensureRequestKey function
- Simplify main data fetching flow by removing complex retry logic
- Add proper error type guards and logging for better debugging
- Improve code readability and maintainability
Fixes issue where Skeb works route failed with Redis cache due to
cache.get() returning Promise object instead of string value, causing
invalid request_key in API calls.
* feat(route): add route for skeb
* fix: wrap function call in map() to resolve ESLint warning
* refactor: Enhance type safety and rename functions for Work and Creator processing
* refactor: optimize followings API and caching logic
* fix: remove request_key
* fix: resolve request_key issues in works API
- Fetch request_key from initial API response and cache it
- Replace hardcoded User-Agent with config.ua
* fix: misc improvements
- Remove unnecessary InvalidParameterError checks and imports
- Simplify route names by removing "Skeb" prefix
- Set refresh to false in Skeb API cache
- Fix typo in search.ts filename
* fix: remove URL fragments from radar sources
* refactor: Optimize category structure and enhance data processing
- Remove 'request_masters' and 'first_requesters' categories as they are not creators
- Implement template rendering for richer output
- Enhance work data processing with audio handling
- Improve creator data with commission status information
* fix: add __dirname
* fix: prevent potential function loop from unexpected API errors
* Update lib/routes/skeb/works.ts
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* fix: correct Skeb bearer token naming and references
---------