PyTrakt
PyTrakt copied to clipboard
UserList.add_items not working
Maybe I am just missing something, but I am attempting to add items to a UserList and can't get it to work. I am using the below code:
import trakt.core
from trakt import init
from trakt.users import UserList
from trakt.movies import Movie
trakt.core.AUTH_METHOD = trakt.core.OAUTH_AUTH
init('[USERNAME]', '[CLIENT_ID]', '[CLIENT_SECRET]')
ombiList = []
ombiList.append( Movie(title='Son of Batman', imdb_id='tt3139072') )
traktList = UserList.get('[LIST_NAME]', '[USERNAME]')
traktList.add_items(ombiList)
This runs without any issues... but when I check trakt, my list has not been updated. Am I doing something wrong or is there a bigger issue?
hi guys!!i dont know where to write...i download some days ago trakt and it doesnt open!!of course exodus doesnt authorize now trakt....thats why i try to work trakt without exodus involved...i spoke with support of trakt and they help me giving instructions...when i download it and try to open i couldnt...
I encounter the same issue with UserList add_items
You need to pass imdb_id via ids property:
- https://github.com/moogar0880/PyTrakt/issues/158#issuecomment-1013670394
maybe that's the problem? since you have not reported any errors, this just a hunch.