PyTrakt icon indicating copy to clipboard operation
PyTrakt copied to clipboard

UserList.add_items not working

Open jasonlyle88 opened this issue 8 years ago • 3 comments

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?

jasonlyle88 avatar Jun 21 '17 13:06 jasonlyle88

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

piret28 avatar Jun 21 '17 16:06 piret28

I encounter the same issue with UserList add_items

thechicacode avatar Jan 15 '21 20:01 thechicacode

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.

glensc avatar Jan 15 '22 12:01 glensc