aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2026-02-26anime parser fixHEADmainBobby4-88/+333
2026-02-26Add MAL client and anime parsing functionalityBobby11-0/+4580
- 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 managementBobby5-34/+34
- 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 managementBobby3-76/+34
2026-02-24Refactor entities and repositories: update JSON tags, add season number, and ↵Bobby6-32/+39
implement related anime fetching logic
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 request handling: enhance facade structure to include fiber context ↵Bobby3-13/+25
for improved parameter access
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 ↵Bobby2-5/+14
and enhance logging for pagination
2026-02-06Refactor RateLimiter: improve request handling and cleanup logicBobby1-19/+20
2026-02-06Refactor task management and producer synchronizationBobby2-4/+2
- 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-04Refactor logger: enhance logging structure with zap integration and remove ↵Bobby2-71/+100
unused LogOptions
2026-02-04Implement request middleware enhancements: add BuildRequest function and ↵Bobby7-0/+211
improve request context handling
2026-02-04Add environment variable utilities: implement functions for retrieving and ↵Bobby4-0/+247
setting environment variables with default values
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-16Refactor Log function to use 'any' type and improve message formattingBobby1-2/+2
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 typesBobby15-165/+698
2025-05-09special query filters for special anime casesBobby3-31/+52
2025-05-09move anime to services. refactor. add sub dub streaming countsBobby16-2064/+1223
2025-05-07Airing Schedule and Next Airing Episode in AnimeBobby1-1/+35
2025-05-07Added characters and streaming to animeBobby5-1/+887
2025-05-06additional data and seasonsBobby3-2/+411
2025-05-02malsync + crunchyroll integration; anime logos and episode thumbnails in ↵Bobby6-657/+993
response
2025-04-18make tmdb request with retries for handling temporary network failuresBobby1-24/+80
2025-04-18basic anime details with episodes; added jikan and anilist as metadata ↵Bobby3-0/+1305
fetchers; added tmdb for fetching episode descriptions
2025-04-06added stats specific utilsBobby2-0/+65
2025-04-06consistent logger paddingBobby1-0/+10
2025-04-06syncing anime lists via fribb mappingsBobby1-0/+47
2025-04-06initialised project bareboresBobby1-0/+95