Hi, amazing project! This aggregates so much data from so many sources!
I got 404 when calling api.get_list_index()
, api.get_dict_anime_relations()
, api.get_list_anime_relations()
.
I found there's an extra .json
in the requested url in animeapi.py
get_dict_anime_relations() & get_list_anime_relations().
Then I got WrongTypeError: wrong value type for field "kaize_id" - should be "typing.Union[int, NoneType]" instead of value "5-fun-de-wakaru-tate-no-yuusha-no-nariagari" of type "str"
.
The problem is kaize_id is sometimes str, so it doesn't match class AnimeRelation:
kaize_id: Optional[int] = None
in models.py.
I temporarily changed my local copy of it to kaize_id: Optional[Union[int, str]] = None
, but I'm not sure if this is correct?
I didn't find the API docs of kaize.io. Can kaize_id sometimes be str?
It's probably related to animeApi/generator/kaize.py & animeApi/generator/converter.py.
Thank you for this amazing project.