Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next airing only for unwatched + in-progress #40

Open
Kozikodi opened this issue Feb 23, 2019 · 1 comment
Open

Next airing only for unwatched + in-progress #40

Kozikodi opened this issue Feb 23, 2019 · 1 comment

Comments

@Kozikodi
Copy link

I realised that the next-airing-episodes would show only for the tv shows that had at least one outstanding episode.
I fixed it by removing filter=filter from appropriate part of episodes.py .

I'm not sure if that's a bug? Obviously, I am interested in knowing when the next episode comes out, even if (or, especially when?) I have already caught up on all the series!

@murbaniak
Copy link

murbaniak commented Feb 17, 2020

It's been a year and no one fixed it yet :-( The problem is actually caused by this line:
filters = [kodi_constants.FILTER_UNWATCHED]
This should be removed. In both methods, unaired() and nextaired(). The rest of the filters are OK.

Also, the limits is applied incorrectly, it should be completely removed from this line:
all_shows = self.metadatautils.kodidb.tvshows(sort=kodi_constants.SORT_LASTPLAYED, filters=filters, limits=(0, self.options["limit"]))
to
all_shows = self.metadatautils.kodidb.tvshows(sort=kodi_constants.SORT_LASTPLAYED, filters=filters)

and then this line should be added to nextaired() method, just like it's done in the unaired() already.
episodes = episodes[:self.options["limit"]]

I'll try to do the pull request, time permitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants