aboutsummaryrefslogtreecommitdiff
path: root/tasks/tasks.go
AgeCommit message (Collapse)AuthorFilesLines
2026-02-26Add MAL client and anime parsing functionalityBobby1-71/+2
- Implemented a new CloudflareClient to handle requests with randomized browser profiles. - Created structures and functions for parsing anime data from MyAnimeList (MAL), including anime details, episodes, and theme songs. - Added enums for anime types, statuses, sources, and ratings. - Developed utility functions for making HTTP requests with rate limiting and error handling. - Introduced image handling for anime covers and thumbnails. - Established a comprehensive data model for anime, including fields for statistics, trailers, and external links.
2026-02-24feat: Enhance person handling and synchronization logicBobby1-6/+11
- Introduced new Person entity with detailed attributes - Updated repositories and controllers to support person data retrieval - Implemented PersonSync task for background enrichment of person data - Refactored existing character and voice actor logic to utilize Person entity - Added Jikan API integration for fetching person details
2026-02-24feat: Refactor anime and character handlingBobby1-0/+11
- 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-24Add anime stub retrieval and enhance anime sync logic with force refresh ↵Bobby1-1/+2
capability
2026-02-24Refactor entities and repositories: add AnimeCharacter and ↵Bobby1-0/+1
CharacterVoiceActor types, update character handling in anime, and enhance producer enrichment logic
2026-02-06Refactor task management and producer synchronizationBobby1-28/+10
- 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-41/+39
configuration
2026-02-03Add support for manual task triggering: update AnimeSync to run after ↵Bobby1-3/+4
AnimeFetch and enhance task status retrieval
2026-02-03Enhance episode ID generation and task management: include MAL ID and ↵Bobby1-1/+7
episode number for uniqueness, and update AnimeSync task to run weekly with last run tracking
2026-02-03Implement AniFetch task for fetching anime mappings and trigger AniSync ↵Bobby1-3/+32
after completion
2026-01-20Implement genre synchronization from MAL via Jikan API and add genre ↵Bobby1-0/+14
retrieval endpoint
2025-05-09task for updating animeBobby1-1/+16
2025-05-09refactored typesBobby1-2/+2
2025-04-06syncing anime lists via fribb mappingsBobby1-0/+35