Skip to content

Commit b2947a5

Browse files
committed
Add search by slug
1 parent a364963 commit b2947a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/tvdbsimple/search.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ class Search(TVDB):
1919
'series_params': '/series/params'
2020
}
2121

22-
def series(self, name='', imdbId='', zap2itId='', language=''):
22+
def series(self, name='', imdbId='', zap2itId='', slug='', language=''):
2323
"""
2424
Search series with the information provided.
2525
2626
You can set `name` to search for a series with that name. You can set `imdbId`
2727
to search a series with the provided imdb id. You can set `zap2itId`
28-
to search a series with the provided zap2it id. You can set `language` to
28+
to search a series with the provided zap2it id. You can set `slug`
29+
to search a series with the provided slug. You can set `language` to
2930
retrieve the results with the provided language.
3031
3132
Returns a list series with basic information that matches your search.
@@ -50,6 +51,8 @@ def series(self, name='', imdbId='', zap2itId='', language=''):
5051
filters['imdbId'] = imdbId
5152
if zap2itId:
5253
filters['zap2itId'] = zap2itId
54+
if slug:
55+
filters['slug'] = slug
5356

5457
self._set_language(language)
5558
response = self._GET(path, params=filters)

0 commit comments

Comments
 (0)