aboutsummaryrefslogtreecommitdiff
path: root/controllers/anime.go
AgeCommit message (Collapse)AuthorFilesLines
2026-02-26Add MAL client and anime parsing functionalityBobby1-11/+9
- 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-24feat: Refactor anime and character handlingBobby1-328/+0
- 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/+18
2026-02-24Refactor GetAnime function: remove unnecessary service call and streamline ↵Bobby1-7/+1
anime retrieval logic
2026-02-09Refactor AnimeUpdate worker logging and enhance API request for skip timesBobby1-2/+8
- 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-05Refactor Jikan API types: remove unused structures and add HTTP client ↵Bobby1-191/+302
configuration
2026-02-03Add genre-based anime retrieval with pagination and related database updatesBobby1-0/+46
2026-01-20Implement genre synchronization from MAL via Jikan API and add genre ↵Bobby1-0/+18
retrieval endpoint
2026-01-16Handle missing anime mapping by checking for MAL ID in getAnimeMapping functionBobby1-1/+2
2026-01-15Add episode streaming functionality and cachingBobby1-0/+50
2025-08-25updated routes, added episode ids to each episodePriyansh1-2/+23
2025-08-19episodes router; anilist support; general fixesPriyansh1-11/+50
2025-05-09refactored typesBobby1-3/+2
2025-05-09move anime to services. refactor. add sub dub streaming countsBobby1-2/+15
2025-04-18basic anime details with episodes; added jikan and anilist as metadata ↵Bobby1-0/+40
fetchers; added tmdb for fetching episode descriptions