aboutsummaryrefslogtreecommitdiff
path: root/tasks
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-25Refactor anime update logic and task managementBobby2-60/+48
- Simplified title retrieval in AnimeUpdate and updateAnime functions. - Updated next airing checks to use new fields directly. - Removed unnecessary nil checks for titles in various functions. - Enhanced task management by eliminating redundant LastRun updates. - Improved dependency handling in triggerDependentTasks for better clarity and performance. - Streamlined Jikan API response structure by merging related fields. - Added StopRateLimiters function to rate limiter utilities for better control. - Refined episode title handling in TMDB and TVDB enrichment functions. - Introduced Stop method in MultiLimiter for graceful shutdown of rate limiters.
2026-02-24feat: Enhance person handling and synchronization logicBobby3-12/+146
- 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 handlingBobby4-1/+115
- 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 ↵Bobby3-2/+56
capability
2026-02-24Refactor entities and repositories: add AnimeCharacter and ↵Bobby3-37/+59
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 AnimeUpdate worker logging and enhance API request for skip timesBobby1-1/+1
- Updated worker logging in AnimeUpdate to display worker ID starting from 1 instead of 0. - Modified the API request in GetSkipTimesForEpisode to include episodeLength=0 in the query parameters for better handling of skip times. - Added a new BaseModel struct in entities package to standardize model definitions with hidden ID and timestamp fields for JSON responses.
2026-02-09Refactor task management: enhance task status handling and trigger dependent ↵Bobby2-11/+85
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 synchronizationBobby8-775/+232
- 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 ↵Bobby4-72/+378
configuration
2026-02-03Add support for manual task triggering: update AnimeSync to run after ↵Bobby2-3/+13
AnimeFetch and enhance task status retrieval
2026-02-03Enhance episode ID generation and task management: include MAL ID and ↵Bobby2-1/+31
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 ↵Bobby3-105/+276
after completion
2026-02-03Refactor anime and genre synchronization tasks: replace existing ↵Bobby2-0/+0
implementations with new structured code for improved maintainability and performance
2026-01-20Implement genre synchronization from MAL via Jikan API and add genre ↵Bobby2-0/+96
retrieval endpoint
2025-08-25Updated Database Sync for AnimePriyansh1-36/+51
2025-05-09updated log message for anime updateBobby1-2/+2
2025-05-09fixed anime updaterBobby1-13/+75
2025-05-09task for updating animeBobby2-1/+232
2025-05-09refactored typesBobby3-50/+50
2025-04-06implement: get tasks and get all tasksBobby1-0/+46
2025-04-06fix tasks: tasks not starting after server rebootBobby1-30/+63
2025-04-06syncing anime lists via fribb mappingsBobby3-0/+381