aboutsummaryrefslogtreecommitdiff
path: root/utils/api/anilist
AgeCommit message (Collapse)AuthorFilesLines
2026-02-06Refactor TMDB and TVDB API integrationBobby1-7/+13
- 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 managementBobby2-292/+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.
2025-05-09removed time until airing from responsesBobby1-8/+118
2025-05-09refactored typesBobby2-0/+371