-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Edit: I thought this was an issue with the list being given a single name rather than having spaces/hyphens, but I just did some further testing and that doesn't seem to be case as it also occurs with the lists ID.
I then thought maybe it was caused by the size of the list, but when I created a new list that was around the same size it seems to work just fine, I even thought maybe the description from the list was causing the issue, so I copy/pasted the description into another list and tried running it again and it runs fine. I just cant seem to pull this specific list and I don't know why.
https://trakt.tv/users/unknownwitcher/lists/arrowverse
Edit 2: Only thing I can think of now, is that maybe whats causing the issue is the fact that this list has a season added to it rather than single episodes, but that doesn't make much sense to me.
Traceback (most recent call last):
File "c:\Users\Projects\TraktToXML\main.py", line 24, in <module>
print(test.get_list('test'))
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 457, in get_list
return UserList.get(title, self.username)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
return generator.send(json_data)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 113, in _get
ulist.get_items()
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
return generator.send(json_data)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 149, in get_items
episode = TVEpisode(show_data['title'], item_data['season'],
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\tv.py", line 659, in __init__
self._get()
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 552, in inner
json_data = self._handle_request('get', url)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 529, in _handle_request
raise self.error_map[response.status_code](response)
trakt.errors.NotFoundException: Not Found - method exists, but no record found`
Code used to get the above error.
import trakt.core
from trakt import users
<auth removed>
myUser = users.User('username')
myUser.get_list('test')
Replace the last two lines from above with the following to get the next error.
myList = users.UserList.get('test','username')
Traceback (most recent call last):
File "c:\Users\Projects\TraktToXML\main.py", line 26, in <module>
myList = users.UserList.get('Test','unknownwitcher')
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
return generator.send(json_data)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 113, in _get
ulist.get_items()
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
return generator.send(json_data)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 149, in get_items
episode = TVEpisode(show_data['title'], item_data['season'],
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\tv.py", line 659, in __init__
self._get()
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 552, in inner
json_data = self._handle_request('get', url)
File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 529, in _handle_request
raise self.error_map[response.status_code](response)