Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.tvdbsimple" name="tvdbsimple" version="1.0.6" provider-name="phate89">
<addon id="script.module.tvdbsimple" name="tvdbsimple" version="11.0.6-a" provider-name="phate89">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.9.1"/>
Expand Down
7 changes: 5 additions & 2 deletions lib/tvdbsimple/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ class Search(TVDB):
'series_params': '/series/params'
}

def series(self, name='', imdbId='', zap2itId='', language=''):
def series(self, name='', imdbId='', zap2itId='', slug='', language=''):
"""
Search series with the information provided.

You can set `name` to search for a series with that name. You can set `imdbId`
to search a series with the provided imdb id. You can set `zap2itId`
to search a series with the provided zap2it id. You can set `language` to
to search a series with the provided zap2it id. You can set `slug`
to search a series with the provided slug. You can set `language` to
retrieve the results with the provided language.

Returns a list series with basic information that matches your search.
Expand All @@ -50,6 +51,8 @@ def series(self, name='', imdbId='', zap2itId='', language=''):
filters['imdbId'] = imdbId
if zap2itId:
filters['zap2itId'] = zap2itId
if slug:
filters['slug'] = slug

self._set_language(language)
response = self._GET(path, params=filters)
Expand Down