{"action":"created","issue":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/184","labels_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/184/comments","events_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/184/events","html_url":"https://github.com/Razzeee/script.trakt/pull/184","id":78697422,"number":184,"title":"Fix to show ratings","user":{"login":"tknorris","id":1934551,"avatar_url":"https://avatars.githubusercontent.com/u/1934551?v=3","gravatar_id":"","url":"https://api.github.com/users/tknorris","html_url":"https://github.com/tknorris","followers_url":"https://api.github.com/users/tknorris/followers","following_url":"https://api.github.com/users/tknorris/following{/other_user}","gists_url":"https://api.github.com/users/tknorris/gists{/gist_id}","starred_url":"https://api.github.com/users/tknorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tknorris/subscriptions","organizations_url":"https://api.github.com/users/tknorris/orgs","repos_url":"https://api.github.com/users/tknorris/repos","events_url":"https://api.github.com/users/tknorris/events{/privacy}","received_events_url":"https://api.github.com/users/tknorris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-20T21:06:57Z","updated_at":"2015-05-20T21:29:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Razzeee/script.trakt/pulls/184","html_url":"https://github.com/Razzeee/script.trakt/pull/184","diff_url":"https://github.com/Razzeee/script.trakt/pull/184.diff","patch_url":"https://github.com/Razzeee/script.trakt/pull/184.patch"},"body":"getIdLookup seems to just return a raw Show object when there is an exact match so your [0] was failing:\r\n```\r\n16:40:20 T:2817518400   FATAL: [script.trakt] service: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--\r\n                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!\r\n                                            Error Type: <type 'TypeError'>\r\n                                            Error Contents: (\"'Show' object does not support indexing\",)\r\n                                            Traceback (most recent call last):\r\n                                              File \"/home/tknorris/.kodi/addons/script.trakt/service.py\", line 61, in _dispatch\r\n                                                self.doManualRating(ratingData)\r\n                                              File \"/home/tknorris/.kodi/addons/script.trakt/service.py\", line 150, in doManualRating\r\n                                                imdb = dict(globals.traktapi.getIdLookup(data['imdbnumber'], id_type)[0].keys)['imdb']\r\n                                            TypeError: 'Show' object does not support indexing\r\n                                            -->End of Python script error report<--\r\n```\r\nAlso, what do you think about changing this logic to just always map to imdb # first and then make the summary / rating calls? In particular, I'm worried that the trakt API doesn't allow tmdb and tvdb id's for summary calls..."},"comment":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/comments/104044832","html_url":"https://github.com/Razzeee/script.trakt/pull/184#issuecomment-104044832","issue_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/184","id":104044832,"user":{"login":"Razzeee","id":5943908,"avatar_url":"https://avatars.githubusercontent.com/u/5943908?v=3","gravatar_id":"","url":"https://api.github.com/users/Razzeee","html_url":"https://github.com/Razzeee","followers_url":"https://api.github.com/users/Razzeee/followers","following_url":"https://api.github.com/users/Razzeee/following{/other_user}","gists_url":"https://api.github.com/users/Razzeee/gists{/gist_id}","starred_url":"https://api.github.com/users/Razzeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Razzeee/subscriptions","organizations_url":"https://api.github.com/users/Razzeee/orgs","repos_url":"https://api.github.com/users/Razzeee/repos","events_url":"https://api.github.com/users/Razzeee/events{/privacy}","received_events_url":"https://api.github.com/users/Razzeee/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T21:29:06Z","updated_at":"2015-05-20T21:29:06Z","body":"Well yeah thats the idea go ahead.\r\nI wanted to do that but I figured we first need to convert the id in the \"imdbnumber\" field for episodes and series to the real imdb number of that show. Not sure if you remember that problem"}}