trakt.py icon indicating copy to clipboard operation
trakt.py copied to clipboard

Search query return all matching items even if the year parameter is passed

Open workeruser47 opened this issue 2 years ago • 0 comments

Source:

Class SearchInterface(Interface):
 ...
 def query(self, query, media=None, year=None, fields=None, extended=None, page=None, per_page=None, **kwargs):
  ...  
  :param year: Desired media year (or :code:`None` to return all matching items)
  :type year: :class:`~python:str` or :class:`~python:int`

Query: Trakt['search'].query('Creator', media='movie', year=2023, pagination=False)

Results: <Movie 'Creator' (1985)> <Movie 'The Creator' (2023)> <Movie 'Creator' (2022)> <Movie 'The Creator' (2018)> ...

workeruser47 avatar May 22 '23 07:05 workeruser47