-
Notifications
You must be signed in to change notification settings - Fork 52
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
AttributeError: 'Movie' object has no attribute 'trakt' #158
Comments
There are other errors on that line This fixed them return {'ids': {'trakt': self.trakt_id, 'slug': self.slug,
'imdb': self.imdb_id, 'tmdb': self.tmdb_id}} |
you are using constructor with data in an unexpected way: Movie(title=res['Title'], imdb_id=res['imdbID']) you need to pass ids as Movie(title=res['Title'], ids= {'trakt': trakt_id, 'slug': self.slug, 'imdb': self.imdb_id, 'tmdb': self.tmdb_id}) this is later filled into |
This was referenced Jan 15, 2022
Adding but due to different reasons. |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like
trakt
was never initialized and thus error.PyTrakt/trakt/movies.py
Line 194 in 033f2ed
Changing it to
trakt_id
should fix things but I haven't tested it myself.Here's the full error log
Here's how
Movie
object is being used in my coderes
is the response forOMDB
api.The text was updated successfully, but these errors were encountered: