anikimiapi icon indicating copy to clipboard operation
anikimiapi copied to clipboard

Always getting 'InvalidAnimeIdError' error

Open Nova-69 opened this issue 3 years ago • 2 comments

Trying to get a link to any anime, including using the example code, results in an InvalidAnimeIdError. My code is as follows:

results = anikimi.search_anime(query=search)
        for i in results:
            animeid = i.animeid
        
        
        anime_link = anikimi.get_episode_link_advanced(animeid=animeid, episode_num=1)

        await ctx.send(anime_link.link_720p)
        await ctx.send(anime_link.link_1080p)

Error is as follows:

Command raised an exception: InvalidAnimeIdError: Invalid animeid or episode_num given

This API looks really easy to use, would love to be able to get it working.

Nova-69 avatar Dec 29 '21 23:12 Nova-69

I am having this problem on get_details() as well.

Edit: The problem persists on v0.1.3

anrayliu avatar Jan 03 '22 03:01 anrayliu

this was most likely fixed by my latest PR which is not merged yet by the author #12 you can find it here

ryan-k8 avatar Jan 10 '22 09:01 ryan-k8