Skip to content

Commit

Permalink
Merge pull request #50 from omaralvarez/master
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Dec 15, 2016
2 parents e8fcf0b + d250524 commit 847c303
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions trakt/interfaces/shows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ def trending(self, **kwargs):
self.get_data(response, **kwargs)
)

def next_episode(self, id, **kwargs):
response = self.http.get(
str(id), 'next_episode'
)

return SummaryMapper.episode(
self.client,
self.get_data(response, **kwargs)
)

def last_episode(self, id, **kwargs):
response = self.http.get(
str(id), 'last_episode'
)

return SummaryMapper.episode(
self.client,
self.get_data(response, **kwargs)
)

def seasons(self, id, extended=None, **kwargs):
response = self.http.get(str(id), [
'seasons'
Expand Down

0 comments on commit 847c303

Please sign in to comment.