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

Use LazyUserList to fetch Trakt Lists faster #493

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

simonc56
Copy link
Collaborator

This PR creates LazyUserList class being inherited from trakt UserList class but without requesting each item of the list to Trakt API.
Fetching Trakt lists should be much faster and not crashing if above 1000 items (GET rate limit of trakt API).

fixes #489

@simonc56 simonc56 marked this pull request as ready for review September 27, 2021 17:01
@glensc glensc merged commit b2e4b60 into Taxel:main Sep 29, 2021
@simonc56 simonc56 deleted the get-trakt-lists-faster branch October 29, 2021 14:42
Repository owner locked as resolved and limited conversation to collaborators Jan 11, 2022

@classmethod
@get
def _get(cls, title, creator):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_get override should not be needed after glensc/python-pytrakt#3

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

Successfully merging this pull request may close these issues.

Fails to retrive Trakt List, if it has Episodes Instead of Shows
2 participants