Skip to content

Commit

Permalink
New list by slug endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiferwort committed Sep 22, 2022
1 parent f2ad8ff commit 06b690f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tvdb_v4_official.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ def get_all_lists(self, page=None, meta=None) -> dict:
def get_list(self, id: int, meta=None,if_modified_since=None) -> dict:
url = self.url.construct('lists', id, meta=meta)
return self.request.make_request(url), if_modified_since

def get_list_by_slug(self, slug: string, meta=None,if_modified_since=None) -> dict:
"""Returns a movie dictionary"""
url = self.url.construct('lists/slug', slug, meta=meta)
return self.request.make_request(url, if_modified_since)

def get_list_extended(self, id: int, meta=None, if_modified_since=None) -> dict:
url = self.url.construct('lists', id, 'extended', meta=meta)
Expand Down

0 comments on commit 06b690f

Please sign in to comment.