aboutsummaryrefslogtreecommitdiff
path: root/utils/api/jikan
AgeCommit message (Collapse)AuthorFilesLines
2026-02-25Refactor anime update logic and task managementBobby1-0/+4
- 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 logicBobby1-0/+19
- 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/+19
- 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 rate limiter: simplify implementation and improve token managementBobby1-2/+2
2026-02-06Refactor database interactions: replace direct database calls with DB ↵Bobby1-0/+8
variable and implement batch creation for images and producers
2026-02-06Refactor Jikan API client: improve context management in GetAnimeProducers ↵Bobby1-3/+4
and enhance logging for pagination
2026-02-06Refactor TMDB and TVDB API integrationBobby1-3/+6
- 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-05Add repository functions for genre, meta, and producer managementBobby1-388/+0
- Implement CreateOrUpdateGenre function in genre.go for managing genres in the database. - Add CreateOrUpdateSimpleImage, CreateOrUpdateSimpleTitle, and CreateOrUpdateExternalURL functions in meta.go for handling images, titles, and external URLs. - Introduce CreateOrUpdateProducer function in producer.go to manage producer data. - Define Anilist data structures in types/anilist.go for handling API responses. - Refactor Anilist API client in utils/api/anilist/anilist.go to improve request handling with retries and error management. - Remove deprecated JikanClient code and related functions in utils/api/jikan/jikan.go to streamline the codebase.
2026-02-05Refactor Jikan API types: remove unused structures and add HTTP client ↵Bobby2-434/+597
configuration
2026-02-03Add genre-based anime retrieval with pagination and related database updatesBobby2-0/+71
2026-01-20Implement genre synchronization from MAL via Jikan API and add genre ↵Bobby2-0/+33
retrieval endpoint
2026-01-16Add curl fallback for HTTP requests in JikanClientBobby1-1/+20
2025-05-09refactored typesBobby2-0/+420