aboutsummaryrefslogtreecommitdiff
path: root/utils/api/aniskip
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-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 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-05Enhance episode and skip time structures: add EpisodeNumber and ↵Bobby2-368/+95
EpisodeLength fields, introduce Aniskip types, and refactor AniSkipClient for improved request handling
2025-05-09refactored typesBobby2-0/+429