aboutsummaryrefslogtreecommitdiff
path: root/utils/api
AgeCommit message (Collapse)AuthorFilesLines
2026-02-25Refactor anime update logic and task managementBobby4-34/+28
- 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-24Add GetAnimeEpisodes endpoint and implement episode retrieval logicBobby1-0/+50
2026-02-24Refactor rate limiter: simplify implementation and improve token managementBobby1-2/+2
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-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 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 integrationBobby10-797/+569
- 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 ↵Bobby2-81/+111
error management, and introduce Malsync types for streaming site and anime response
2026-02-05Enhance episode and skip time structures: add EpisodeNumber and ↵Bobby2-368/+95
EpisodeLength fields, introduce Aniskip types, and refactor AniSkipClient for improved request handling
2026-02-05Add repository functions for genre, meta, and producer managementBobby3-680/+140
- 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-20Add TVDB integration for episode retrieval and configuration setupBobby4-1/+457
2026-01-16Rename streaming source type from "M3U8" to "HLS" for clarity in ↵Bobby1-1/+1
GetEpisodeLinks function
2026-01-16Add curl fallback for HTTP requests in JikanClientBobby1-1/+20
2026-01-15Add episode streaming functionality and cachingBobby1-4/+50
2025-05-09increased max retries for TMDB dataBobby1-6/+11
2025-05-09removed time until airing from responsesBobby1-8/+118
2025-05-09updated tmdb for simple retryingBobby1-76/+99
2025-05-09refactored typesBobby13-132/+633
2025-05-09special query filters for special anime casesBobby2-31/+36
2025-05-09move anime to services. refactor. add sub dub streaming countsBobby7-0/+1984