Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
workeruser47 opened this issue May 22, 2023 · 0 comments

Comments

@workeruser47
Copy link

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)>
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant