insomniachi / Totoro

A Windows 10/11 only application that is a go to for all things anime.
MIT License
216 stars 12 forks source link

Unwatched episode notification badge #48

Closed Bamboozul closed 1 year ago

Bamboozul commented 1 year ago

I've already watched all the aired episodes of Mushoku Tensei II: Isekai Ittara Honki Dasu, including the special (4+1), yet I still have the notification badge that says I have one unwatched episode.

List view

Grid view

insomniachi commented 1 year ago

I'm using anilist api to get the next airing episode, subtracting 1 will give aired episode, i'm taking the difference of this and watched episodes in tracking to show in the badge.

anilist is saying 5 episodes have aired here

probably it's counting the special episode, there is nothing i can do in this case,

Bamboozul commented 1 year ago

I'm using anilist api to get the next airing episode, subtracting 1 will give aired episode,

Is it feasible to include an option to select which API to use? (If that is not too much work for you).

insomniachi commented 1 year ago

MAL api doesn't give anything about airing schedule, or number of episodes aired. which other api are you talking about

Bamboozul commented 1 year ago

MAL api doesn't give anything about airing schedule, or number of episodes aired. which other api are you talking about

Jikan - Unofficial MyAnimeList.net PHP API

insomniachi commented 1 year ago

mal's episode tab doesn't always update image image episode 5 was released 17 hours ago. jikan just scrapes MAL. i don't see value in using it, Anilist api would be more accurate 90% of the time.

Bamboozul commented 1 year ago

mal's episode tab doesn't always update image image episode 5 was released 17 hours ago. jikan just scrapes MAL. i don't see value in using it, Anilist api would be more accurate 90% of the time.

We stick with Anilist API then.