{"action":"created","issue":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/183","labels_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/183/comments","events_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/183/events","html_url":"https://github.com/Razzeee/script.trakt/issues/183","id":74249233,"number":183,"title":"manual trakt rating of tv show in kodi library fails","user":{"login":"mgonzales71","id":6510026,"avatar_url":"https://avatars.githubusercontent.com/u/6510026?v=3","gravatar_id":"","url":"https://api.github.com/users/mgonzales71","html_url":"https://github.com/mgonzales71","followers_url":"https://api.github.com/users/mgonzales71/followers","following_url":"https://api.github.com/users/mgonzales71/following{/other_user}","gists_url":"https://api.github.com/users/mgonzales71/gists{/gist_id}","starred_url":"https://api.github.com/users/mgonzales71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgonzales71/subscriptions","organizations_url":"https://api.github.com/users/mgonzales71/orgs","repos_url":"https://api.github.com/users/mgonzales71/repos","events_url":"https://api.github.com/users/mgonzales71/events{/privacy}","received_events_url":"https://api.github.com/users/mgonzales71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-08T06:20:42Z","updated_at":"2015-05-14T10:01:19Z","closed_at":null,"body":"let me know if you need additional info.\r\n\r\nI enabled debug for the script failure which is reproducible.\r\n\r\nrunning latest non beta 3.0.1 of script.trakt\r\nwindows 8.1 x64 \r\nkodi 14.2\r\n\r\nif folks don't say it enough - thanks for all your hard work Razzeee :+1:  :)\r\n\r\nlog file excerpt (can provide a full log if needed but this is debug log of script failure):\r\n\r\n23:10:30 T:9152  NOTICE: Log level changed to \"LOG_LEVEL_DEBUG_FREEMEM\"\r\n23:10:30 T:9152  NOTICE: Enabled debug logging due to GUI setting. Level 2.\r\n23:10:30 T:9152  NOTICE: Log level changed to \"LOG_LEVEL_DEBUG_FREEMEM\"\r\n23:10:30 T:9152  NOTICE: Enabled debug logging due to GUI setting. Level 2.\r\n23:10:30 T:9152   DEBUG: ------ Window Init () ------\r\n23:10:30 T:9152   DEBUG: ------ Window Deinit (DialogButtonMenu.xml) ------\r\n23:10:37 T:9152   DEBUG: Keyboard: scancode: 0x2e, sym: 0x0063, unicode: 0x0063, modifier: 0x0\r\n23:10:37 T:9152   DEBUG: CApplication::OnKey: c (0xf043) pressed, action is ContextMenu\r\n23:10:37 T:9152   DEBUG: CFavourites::Load - no system favourites found, skipping\r\n23:10:37 T:9152   DEBUG: ------ Window Init (DialogContextMenu.xml) ------\r\n23:10:45 T:9152   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0\r\n23:10:45 T:9152   DEBUG: CApplication::OnKey: return (0xf00d) pressed, action is Select\r\n23:10:45 T:7788  NOTICE: Thread LanguageInvoker start, auto delete: false\r\n23:10:45 T:7788    INFO: initializing python engine.\r\n23:10:45 T:7788   DEBUG: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): start processing\r\n23:10:45 T:7788  NOTICE: -->Python Interpreter Initialized<--\r\n23:10:45 T:7788   DEBUG: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): the source file to load is \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py\"\r\n23:10:45 T:7788   DEBUG: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): setting the Python path to C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.arrow\\lib;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.dateutil\\lib;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.requests\\lib;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.simplejson-master\\lib;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.six\\lib;C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.trakt\\lib;C:\\Program Files (x86)\\Kodi\\system\\python\\DLLs;C:\\Program Files (x86)\\Kodi\\system\\python\\Lib;C:\\Program Files (x86)\\Kodi\\python27.zip;C:\\Program Files (x86)\\Kodi\\system\\python\\lib\\plat-win;C:\\Program Files (x86)\\Kodi\\system\\python\\lib\\lib-tk;C:\\Program Files (x86)\\Kodi;C:\\Program Files (x86)\\Kodi\\system\\python;C:\\Program Files (x86)\\Kodi\\system\\python\\lib\\site-packages\r\n23:10:45 T:7788   DEBUG: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): entering source directory C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\r\n23:10:45 T:7788   DEBUG: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): instantiating addon using automatically obtained id of \"script.trakt\" dependent on version 2.1.0 of the xbmc.python api\r\n23:10:45 T:9152   DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------\r\n23:10:45 T:9152   DEBUG: ------ Window Init (C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\skin.titan.helix\\1080i\\TraktContextMenu.xml) ------\r\n23:10:45 T:9152    INFO: Loading skin file: C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\skin.titan.helix\\1080i\\TraktContextMenu.xml, load type: LOAD_ON_GUI_INIT\r\n23:10:45 T:9152   DEBUG: CGUIMediaWindow::GetDirectory ()\r\n23:10:45 T:9152   DEBUG:   ParentPath = []\r\n23:10:45 T:7788   DEBUG: POParser: loaded 144 strings from file C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\resources\\language\\English\\strings.po\r\n23:10:52 T:9152   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0\r\n23:10:52 T:9152   DEBUG: CApplication::OnKey: return (0xf00d) pressed, action is Select\r\n23:10:52 T:9152   DEBUG: ------ Window Deinit (C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\skin.titan.helix\\1080i\\TraktContextMenu.xml) ------\r\n23:10:52 T:7788    INFO: CPythonInvoker(117, C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\script.py): script successfully run\r\n23:10:52 T:7788    INFO: Python script stopped\r\n23:10:52 T:7788   DEBUG: Thread LanguageInvoker 7788 terminating\r\n23:10:52 T:4924   DEBUG: [script.trakt] service: Queued dispatch: {u'action': u'manualRating', u'ratingData': {u'action': u'rate', u'dbid': 1, u'tag': [], u'media_type': u'show', u'imdbnumber': u'272644'}}\r\n23:10:52 T:4924   DEBUG: [script.trakt] service: Dispatch: {u'action': u'manualRating', u'ratingData': {u'action': u'rate', u'dbid': 1, u'tag': [], u'media_type': u'show', u'imdbnumber': u'272644'}}\r\n23:10:52 T:4924   DEBUG: [script.trakt] service: Getting data for manual rate of show: imdb: |None| dbid: |1|\r\n23:10:52 T:4924    INFO: [script.trakt] requests.packages.urllib3.connectionpool: Resetting dropped connection: api-v2launch.trakt.tv\r\n23:10:53 T:4924   ERROR: C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.requests\\lib\\requests\\packages\\urllib3\\util\\ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.\r\n                                              InsecurePlatformWarning\r\n23:10:53 T:4924   DEBUG: [script.trakt] requests.packages.urllib3.connectionpool: \"GET /shows/272644 HTTP/1.1\" 404 None\r\n23:10:53 T:4924   DEBUG: [script.trakt] trakt.interfaces.base: response returned content-type: 'text/html', falling back to raw data\r\n23:10:53 T:4924 WARNING: [script.trakt] trakt.interfaces.base: request failed: Not Found - \"method exists, but no record found\" (code: 404)\r\n23:10:53 T:4924   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: (\"argument of type 'NoneType' is not iterable\",)\r\n                                            Traceback (most recent call last):\r\n                                              File \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\service.py\", line 61, in _dispatch\r\n                                                self.doManualRating(ratingData)\r\n                                              File \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\service.py\", line 147, in doManualRating\r\n                                                summaryInfo = globals.traktapi.getShowSummary(data['imdbnumber'])\r\n                                              File \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.trakt\\traktapi.py\", line 275, in getShowSummary\r\n                                                return Trakt['shows'].get(showId)\r\n                                              File \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.trakt\\lib\\trakt\\interfaces\\shows\\__init__.py\", line 14, in get\r\n                                                self.get_data(response)\r\n                                              File \"C:\\Users\\Mario\\AppData\\Roaming\\Kodi\\addons\\script.module.trakt\\lib\\trakt\\mapper\\summary.py\", line 25, in show\r\n                                                if 'show' in item:\r\n                                            TypeError: argument of type 'NoneType' is not iterable\r\n                                            -->End of Python script error report<--\r\n23:10:58 T:9152   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib.dll)\r\n23:11:02 T:9152   DEBUG: Keyboard: scancode: 0x1f, sym: 0x0073, unicode: 0x0073, modifier: 0x0\r\n23:11:02 T:9152   DEBUG: CApplication::OnKey: s (0xf053) pressed, action is ActivateWindow(shutdownmenu)\r\n23:11:02 T:9152   DEBUG: Activating window ID: 10111\r\n23:11:02 T:9152   DEBUG: ------ Window Init (DialogButtonMenu.xml) ------\r\n23:11:03 T:9152   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0\r\n23:11:03 T:9152   DEBUG: CApplication::OnKey: return (0xf00d) pressed, action is Select\r\n23:11:03 T:9152  NOTICE: Disabled debug logging due to GUI setting. Level 0.\r\n23:11:03 T:9152  NOTICE: Log level changed to \"LOG_LEVEL_NORMAL\"\r\n23:11:03 T:9152  NOTICE: Disabled debug logging due to GUI setting. Level 0.\r\n23:11:03 T:9152  NOTICE: Log level changed to \"LOG_LEVEL_NORMAL\"\r\n"},"comment":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/comments/101989589","html_url":"https://github.com/Razzeee/script.trakt/issues/183#issuecomment-101989589","issue_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/183","id":101989589,"user":{"login":"mgonzales71","id":6510026,"avatar_url":"https://avatars.githubusercontent.com/u/6510026?v=3","gravatar_id":"","url":"https://api.github.com/users/mgonzales71","html_url":"https://github.com/mgonzales71","followers_url":"https://api.github.com/users/mgonzales71/followers","following_url":"https://api.github.com/users/mgonzales71/following{/other_user}","gists_url":"https://api.github.com/users/mgonzales71/gists{/gist_id}","starred_url":"https://api.github.com/users/mgonzales71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgonzales71/subscriptions","organizations_url":"https://api.github.com/users/mgonzales71/orgs","repos_url":"https://api.github.com/users/mgonzales71/repos","events_url":"https://api.github.com/users/mgonzales71/events{/privacy}","received_events_url":"https://api.github.com/users/mgonzales71/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T10:01:18Z","updated_at":"2015-05-14T10:01:18Z","body":"![2015-05-14_02-55-37](https://cloud.githubusercontent.com/assets/6510026/7629845/10e25cb8-f9e5-11e4-8f7c-9f2ab36bb5d4.png)\r\n\r\nI am betting this is the reason for kodi returning 272644\r\n\r\nI use TVDB as the content scraper for the source folder"}}