diff options
| author | Fuwn <[email protected]> | 2026-06-05 11:10:22 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-06-05 11:10:22 +0000 |
| commit | 4b56194ee6807acb56abf0949394efadabf830d4 (patch) | |
| tree | 5cb2074a8d012bf9b7c900e7e44cbdfd0e15123f /src/graphql/anime/schema.graphql | |
| parent | fix(lists): tick count down when media leaves a list (diff) | |
| download | due.moe-4b56194ee6807acb56abf0949394efadabf830d4.tar.xz due.moe-4b56194ee6807acb56abf0949394efadabf830d4.zip | |
feat(airing): replace SubsPlease with AnimeSchedule (sub+dub)
Source both subbed and dubbed episode schedules from AnimeSchedule.net v3 (absolute timestamps, episode numbers, delay windows, streams), keyed to AniList shows by title. Removes SubsPlease and its ~650-line fuzzy matcher. Countdown source is now a setting (native|sub|dub) with a dub->sub->native fallback.
Requires ANIMESCHEDULE_CLIENT_TOKEN.
Diffstat (limited to 'src/graphql/anime/schema.graphql')
| -rw-r--r-- | src/graphql/anime/schema.graphql | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/src/graphql/anime/schema.graphql b/src/graphql/anime/schema.graphql index d5774966..aad7afec 100644 --- a/src/graphql/anime/schema.graphql +++ b/src/graphql/anime/schema.graphql @@ -1,29 +1,32 @@ type Query { - Anime(timezone: String): Anime! + Anime: Anime! } type Anime { - subtitles: Subtitles + airing: Airing } -type Subtitles { - timezone: String - schedule: SubtitleSchedule +type Airing { + generatedAt: Int + sub: [AiringRelease] + dub: [AiringRelease] } -type SubtitleSchedule { - monday: [Subtitle] - tuesday: [Subtitle] - wednesday: [Subtitle] - thursday: [Subtitle] - friday: [Subtitle] - saturday: [Subtitle] - sunday: [Subtitle] +type AiringRelease { + route: String + title: String + romaji: String + english: String + native: String + episodeNumber: Int + airingAt: Int + delayedUntil: Int + imageUrl: String + streams: [Stream] } -type Subtitle { - title: String - page: String - image_url: String - time: String +type Stream { + platform: String + url: String + name: String } |