aboutsummaryrefslogtreecommitdiff
path: root/tasks/producersync.task.go
AgeCommit message (Collapse)AuthorFilesLines
2026-02-24feat: Refactor anime and character handlingBobby1-0/+4
- Removed old GetAnimeEpisodes and GetAnimeEpisodesByMALID functions, replaced with a new implementation in episodes.go. - Added GetAnimeCharacters and GetAnimeCharacter functions to handle character retrieval. - Introduced CharacterAnimeAppearance entity to track character appearances in anime. - Updated repositories to manage character data and enrich character details. - Implemented enriched_at timestamp for both anime and characters to track data updates. - Added CharacterSync task to periodically enrich character data from the Jikan API. - Updated router to include new character-related endpoints.
2026-02-24Refactor entities and repositories: add AnimeCharacter and ↵Bobby1-37/+54
CharacterVoiceActor types, update character handling in anime, and enhance producer enrichment logic
2026-02-24Refactor producer sync logic: streamline data saving and enhance external ↵Bobby1-74/+90
URL enrichment process
2026-02-09Refactor task management: enhance task status handling and trigger dependent ↵Bobby1-0/+11
tasks; improve producer sync logic to skip recently updated producers
2026-02-09Refactor BatchCreateProducers: implement transaction handling and improve ↵Bobby1-0/+39
error logging; add title and external URL associations
2026-02-06Refactor database interactions: replace direct database calls with DB ↵Bobby1-36/+88
variable and implement batch creation for images and producers
2026-02-06Refactor task management and producer synchronizationBobby1-234/+48
- 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-05Refactor Jikan API types: remove unused structures and add HTTP client ↵Bobby1-0/+264
configuration