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

added filter by path and tag to unaired and nextaired methods #21

Merged
merged 5 commits into from
Oct 2, 2017

Conversation

redglory
Copy link
Contributor

@redglory redglory commented Sep 22, 2017

Following the change in next episodes which can be filtered by path and tag parameters, I've applied same concept to nextairing and unaired episodes, which relie on the script.module.thetvdb module.

Also added pt_pt full translation .po

Copy link
Contributor

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR, please see my comments in both PR's (also in tvdb module) before I can accept the merge

all_shows = self.metadatautils.kodidb.tvshows(sort=kodi_constants.SORT_LASTPLAYED, filters=filters,
limits=(0, self.options["limit"]))
tvshows_ids = [d['tvshowid'] for d in all_shows]
episodes = self.metadatautils.thetvdb.get_kodi_unaired_episodes(True, tvshows_ids)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this line in

episodes = self.metadatautils.thetvdb.get_kodi_unaired_episodes(True, False, tvshows_ids)

see my comments in the PR for tvdb module

all_shows = self.metadatautils.kodidb.tvshows(sort=kodi_constants.SORT_LASTPLAYED, filters=filters,
limits=(0, self.options["limit"]))
tvshows_ids = [d['tvshowid'] for d in all_shows]
episodes = self.metadatautils.thetvdb.get_kodi_unaired_episodes(False, tvshows_ids)[:self.options["limit"]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this line in

episodes = self.metadatautils.thetvdb.get_kodi_unaired_episodes(False, False, tvshows_ids)
episodes = episodes[:self.options["limit"]]

see my comments in the PR for tvdb module

@redglory
Copy link
Contributor Author

redglory commented Oct 1, 2017

You are right!

Fixed thetvdb tvshows_ids parameter and made it optional.

@marcelveldt
Copy link
Contributor

Thanks !

@marcelveldt marcelveldt merged commit a7da63e into kodi-community-addons:master Oct 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants