ghoshRitesh12 / aniwatch-api

Node.js API for obtaining anime information from hianime.to
https://aniwatch-api.onrender.com
MIT License
257 stars 151 forks source link

Next airing episode data #55

Closed yusuftuncay closed 3 months ago

yusuftuncay commented 4 months ago

Is your feature request related to a problem? Please describe. On hianime.to, let's say One Piece, I can see that there's data for when the next episode will be released, is this possible to add in the api? I searched /episodes and /info and didn't find any data related to this.

Describe alternatives you've considered Using consumet api and the anilistId provided by aniwatch api for this feature

ghoshRitesh12 commented 4 months ago

@yusuftuncay An API endpoint for this already exists. The docs. Although it exists, there's a bug that has to be fixed.

yusuftuncay commented 4 months ago

I saw that, but it requires a date. I was probably not clear enough, but I meant a property in seconds or so that tells when a specific anime's next episode will be released.

This is how consumet shows it (at the bottom):

image

ghoshRitesh12 commented 4 months ago

Ohh got it. Yeah, I think we could add this feature like consumet.

yusuftuncay commented 4 months ago

All righty, thank you!

ghoshRitesh12 commented 3 months ago

@yusuftuncay Hey, I've added the airingTimestamp and secondsUntilAiring properties to the /schedule endpoint response schema. Closing this as completed. If you have any other queries then feel free to open another issue.

yusuftuncay commented 3 months ago

@ghoshRitesh12 I have a question and couldn't ask it anywhere else, I don't see the options for all posibilites of "sort" values are when searching, I tried score and it works fine, but I want the "most watched" which I found that hianime has, tried "most-watched", "mostWatched" and other things but nothing works for that, is there even a value for sorting on most watched?

ghoshRitesh12 commented 3 months ago

@ghoshRitesh12 I have a question and couldn't ask it anywhere else, I don't see the options for all posibilites of "sort" values are when searching, I tried score and it works fine, but I want the "most watched" which I found that hianime has, tried "most-watched", "mostWatched" and other things but nothing works for that, is there even a value for sorting on most watched?

I recently checked and its not working on hianime.to

yusuftuncay commented 3 months ago

Oh okay, it does work now in your api. Just checked hianime and it works there as well. Thanks a lot! By the way, I implemented so many functions on my website using your api, I'm thankful that you created this! Everything loads so fast and has literally no bugs compared to consumet. Oh and this is the website if you feel like checking it out.

ghoshRitesh12 commented 3 months ago

Oh okay, it does work now in your api. Just checked hianime and it works there as well. Thanks a lot! By the way, I implemented so many functions on my website using your api, I'm thankful that you created this! Everything loads so fast and has literally no bugs compared to consumet. Oh and this is the website if you feel like checking it out.

Thank you so much 🩵