This repository includes anime relation data for Taiga. It is used to redirect an episode to another, which is required to handle special episodes and the case where fansub groups use continuous numbering scheme in their releases.
(\d+)|(\d+):(\d+)(?:-(\d+|\?))? -> (\d+)|(\d+):(\d+)(?:-(\d+|\?))?(!)?
└─┬─┘ └─┬─┘ └────────┬────────┘ └─┬─┘ └─┬─┘ └────────┬────────┘└┬─┘
1 2 3 1 2 3 4
- MyAnimeList ID -
https://myanimelist.net/anime/{id}/{title}
- Kitsu ID -
https://kitsu.io/api/edge/anime?filter[text]={title}
- Episode number or range (
?
is used for unknown episode count) - Appending
!
to a rule is a shorthand for creating a new rule where destination ID is redirected to itself
The first season of Fate/Zero has 13 episodes, yet it is possible to encounter filenames that go beyond this number:
[Coalgirls]_Fate_Zero_14_(1280x720_Blu-ray_FLAC)_[E56A8415].mkv
To handle this case, we create the following rule:
# Fate/Zero -> ~ 2nd Season
- 10087|6028:14-25 -> 11741|7658:1-12!
Here we declare that 14th to 25th episodes of Fate/Zero are to be identified as the 1st to 12th episodes of Fate/Zero 2nd Season:
S1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
S2 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
By appending an !
to the rule, we also handled the cases such as Fate Zero S2 - 14
. This basically creates another rule:
# Fate/Zero 2nd Season -> ~
- 11741|7658:14-25 -> 11741|7658:1-12
- Look up MyAnimeList and Kitsu IDs of both anime.
- Create a new rule and place it in alphabetical order, using the main title from MyAnimeList.
- Update the
last_modified
date inYYYY-MM-DD
format. - Make sure the rule is working, by testing it before sending a pull request.
- In the pull request, indicate which fansub groups' releases require the new rule.
This repository is in the public domain.