Skip to content

Commit

Permalink
Series have /similar too
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjds committed Nov 17, 2014
1 parent d836fcb commit 049684f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tmdb3/tmdb_api.py
Expand Up @@ -908,3 +908,14 @@ def _populate_external_ids(self):
freebase_mid = Datapoint('freebase_mid', poller=_populate_external_ids)
tvdb_id = Datapoint('tvdb_id', poller=_populate_external_ids)
tvrage_id = Datapoint('tvrage_id', poller=_populate_external_ids)

def getSimilar(self):
return self.similar

@property
def similar(self):
res = SeriesSearchResult(Request(
'tv/{0}/similar'.format(self.id)),
locale=self._locale)
res._name = 'Similar to {0.name}'.format(self)
return res

0 comments on commit 049684f

Please sign in to comment.