KatsuteDev/Mal4J

`Genre` enum is mapped incorrectly

CryoliteDev opened this issue · 2 comments

The API is outputting the wrong genre for Anime and Manga.
The displayed Genres are different from the website.

Using v. 2.0.1

Output for the top two Anime

Title: Fullmetal Alchemist: Brotherhood
Genres: [Adventure, Supernatural, Action, Comedy, Ecchi, Magic, Game, School]

Title: Shingeki no Kyojin Season 3 Part 2
Genres: [Adventure, Ecchi, Game, Supernatural, Drama, School, ShoujoAi]

Output for the top two Manga

Title: Berserk
Genres: [Adventure, Action, Game, Vampire, SuperPower, Supernatural, Demons, Ecchi, Josei, null]

Title: JoJo no Kimyou na Bouken Part 7: Steel Ball Run
Genres: [Adventure, Action, SuperPower, Horror, Drama, Josei, School, null]

Can you post the IDs and the genres that are supposed to appear

Top two Anime

ID: 5114
Title: Fullmetal Alchemist: Brotherhood
Genres: (API) [Adventure, Supernatural, Action, Comedy, Ecchi, Magic, Game, School]

Expected Genre's: Action, Military, Adventure, Comedy, Drama, Magic, Fantasy, Shounen

ID: 38524
Title: Shingeki no Kyojin Season 3 Part 2
Genres: (API) [Adventure, Ecchi, Game, Supernatural, Drama, School, ShoujoAi]

Expected Genre's: Action, Drama, Fantasy, Military, Mystery, Shounen, Super Power

Top two Manga

ID: 2
Title: Berserk
Genres: (API) [Adventure, Action, Game, Vampire, SuperPower, Supernatural, Demons, Ecchi, Josei, null]

Expected Genre's: Action, Adventure, Demons, Drama, Fantasy, Horror, Supernatural, Military, Psychological, Seinen

ID: 1706
Title: JoJo no Kimyou na Bouken Part 7: Steel Ball Run
Genres: (API) [Adventure, Action, SuperPower, Horror, Drama, Josei, School, null]

Expected Genre's: Action, Adventure, Mystery, Historical, Horror, Shounen, Supernatural, Seinen

Sample Code

        AnimeRankingType animeRankingType = AnimeRankingType.All;
        List<AnimeRanking> topAnime =
                mal.getAnimeRanking(animeRankingType).search();

        for (int i = 0; i <2; i++) {
            Long ID = topAnime.get(i).getAnime().getID();
            String title = topAnime.get(i).getAnime().getTitle();
            Genre[] genre = topAnime.get(i).getAnime().getGenres();
            System.out.println("ID: " + ID +"\nTitle: " + title + "\nGenres: (API) " + Arrays.toString(genre));
        }