aboutsummaryrefslogtreecommitdiff
path: root/utils/api/malsync/malsync.go
AgeCommit message (Collapse)AuthorFilesLines
2026-02-06Refactor task management and producer synchronizationBobby1-2/+0
- Updated TaskManager to utilize repositories for database operations, improving separation of concerns. - Enhanced logging functionality by replacing logger.Log with logger.Infof, logger.Warnf, and logger.Errorf for better readability and consistency. - Simplified ProducerSync function by removing unnecessary pagination logic and directly fetching producer data. - Introduced helper functions for calculating progress and managing task statuses. - Added new service for fetching and saving anime data, integrating multiple data sources (Jikan, Anilist, MALsync, TMDB, TVDB, Aniskip). - Created new types for task management and improved overall code organization. - Removed deprecated database calls and replaced them with repository methods for better maintainability.
2026-02-06Refactor TMDB and TVDB API integrationBobby1-5/+9
- Removed redundant struct definitions in TMDB types.go for cleaner code. - Introduced a client struct in both TMDB and TVDB to manage HTTP client and authentication tokens. - Updated TVDB authentication logic to use a single client instance with improved error handling. - Refactored episode fetching and processing functions in TVDB to enhance readability and maintainability. - Simplified episode ID generation logic by consolidating it into a single function. - Improved logging for better debugging and tracking of API interactions.
2026-02-05Refactor MALSync API client: enhance request handling with retry logic and ↵Bobby1-54/+103
error management, and introduce Malsync types for streaming site and anime response
2025-05-09refactored typesBobby1-0/+98