{"action":"created","issue":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/167","labels_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/167/comments","events_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/167/events","html_url":"https://github.com/Razzeee/script.trakt/issues/167","id":63099132,"number":167,"title":"Items not added to trakt collection","user":{"login":"dexhain","id":6941991,"avatar_url":"https://avatars.githubusercontent.com/u/6941991?v=3","gravatar_id":"","url":"https://api.github.com/users/dexhain","html_url":"https://github.com/dexhain","followers_url":"https://api.github.com/users/dexhain/followers","following_url":"https://api.github.com/users/dexhain/following{/other_user}","gists_url":"https://api.github.com/users/dexhain/gists{/gist_id}","starred_url":"https://api.github.com/users/dexhain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexhain/subscriptions","organizations_url":"https://api.github.com/users/dexhain/orgs","repos_url":"https://api.github.com/users/dexhain/repos","events_url":"https://api.github.com/users/dexhain/events{/privacy}","received_events_url":"https://api.github.com/users/dexhain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T21:55:52Z","updated_at":"2015-03-20T09:00:10Z","closed_at":null,"body":"So, I add an item to a tv folder, and send a library update request to kodi (for that specific folder), and it gets added to my library. script.trakt appears to run, however it doesn't get added to my trakt collection. If I subsequently run a full sync, it does get added.\r\nRelevant logs (for update that doesn't work):\r\n```\r\n03:11:16 T:1563227200  NOTICE: Thread VideoInfoScanner start, auto delete: false\r\n03:11:16 T:1969356800   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------\r\n03:11:16 T:1563227200  NOTICE: VideoInfoScanner: Starting scan ..\r\n03:11:16 T:1563227200   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc\r\n03:11:16 T:1563227200   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanStarted\r\n03:11:16 T:1858040896   DEBUG: [script.trakt] service: [traktMonitor] onDatabaseScanStarted(database: video)\r\n03:11:16 T:1858040896   DEBUG: [script.trakt] service: Queuing for dispatch: {'action': 'scanStarted'}\r\n03:11:17 T:1858040896   DEBUG: [script.trakt] service: Queued dispatch: {u'action': u'scanStarted'}\r\n03:11:17 T:1858040896   DEBUG: [script.trakt] service: Dispatch: {u'action': u'scanStarted'}\r\n03:11:18 T:1563227200   DEBUG: VideoInfoScanner: Rescanning dir 'smb://NSA325/tv/It's Always Sunny in Philadelphia/' due to change (4A341B07353CCAD93DB96540AC9B5D0F != 21CD7DE30369FBC143B92FE8FE85B121)\r\n...\r\n03:11:18 T:1563227200   DEBUG: VideoInfoScanner: Found episode match smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/It's Always Sunny in Philadelphia s10e10 - Ass Kickers United Mac and Charlie Join a Cult.mp4 (s10e10) [s([0-9]+)[ ._-]*e([0-9]+(?:(?:[a-i]|\\.[1-9])(?![0-9]))?)([^\\\\/]*)$]\r\n...\r\n03:11:19 T:1563227200   DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/It's Always Sunny in Philadelphia s10e10 - Ass Kickers United Mac and Charlie Join a Cult.mp4'\r\n03:11:19 T:1563227200   DEBUG: GetEpisodeList: Searching 'http://thetvdb.com/api/1D62F2F90030C444/series/75805/all/en.zip' using The TVDB scraper (file: '/storage/.kodi/addons/metadata.tvdb.com', content: 'tvshows', version: '1.7.1')\r\n03:11:19 T:1563227200   DEBUG: CurlFile::Open(0x67b08740) http://thetvdb.com/api/1D62F2F90030C444/series/75805/all/en.zip\r\n03:11:19 T:1563227200    INFO: easy_aquire - Created session to http://thetvdb.com\r\n03:11:19 T:1563227200   DEBUG: Get: Archive \"http://thetvdb.com/api/1D62F2F90030C444/series/75805/all/en.zip\" was unpacked in memory\r\n03:11:19 T:1563227200   DEBUG: Get: Using content of \"http://thetvdb.com/api/1D62F2F90030C444/series/75805/all/en.zip\" as binary or text with \"UTF-8\" charset\r\n...\r\n03:11:20 T:1563227200   DEBUG: VideoInfoScanner: Adding new item to tvshows:smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/It's Always Sunny in Philadelphia s10e10 - Ass Kickers United Mac and Charlie Join a Cult.mp4\r\n...\r\n03:11:20 T:1563227200   DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc\r\n03:11:20 T:1563227200   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnUpdate\r\n03:11:20 T:1563227200   DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc\r\n03:11:20 T:1563227200   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnUpdate\r\n03:11:20 T:1563227200   DEBUG: VideoInfoScanner: Rescanning dir 'smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/' due to change (B055099E424D5C8256A55A90C93BD0CB != AAA7AF9C99DEAB7E3EC82EA7C0C93007)\r\n...\r\n03:11:20 T:1563227200   DEBUG: VideoInfoScanner: Found episode match smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/It's Always Sunny in Philadelphia s10e10 - Ass Kickers United Mac and Charlie Join a Cult.mp4 (s10e10) [s([0-9]+)[ ._-]*e([0-9]+(?:(?:[a-i]|\\.[1-9])(?![0-9]))?)([^\\\\/]*)$]\r\n...\r\n03:11:20 T:1563227200   DEBUG: GetEpisodeId (smb://NSA325/tv/It's Always Sunny in Philadelphia/Season 10/It's Always Sunny in Philadelphia s10e10 - Ass Kickers United Mac and Charlie Join a Cult.mp4), query = select idEpisode from episode where idFile=10561\r\n...\r\n03:11:21 T:1563227200  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:04\r\n03:11:21 T:1563227200   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc\r\n03:11:21 T:1563227200   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanFinished\r\n03:11:21 T:1638794304   DEBUG: CRecentlyAddedJob::UpdateVideos() - Running RecentlyAdded home screen update\r\n03:11:21 T:1563227200   DEBUG: Thread VideoInfoScanner 1563227200 terminating\r\n03:11:21 T:1858040896   DEBUG: [script.trakt] service: [traktMonitor] onDatabaseUpdated(database: video)\r\n03:11:21 T:1858040896   DEBUG: [script.trakt] service: Queuing for dispatch: {'action': 'databaseUpdated'}\r\n03:11:21 T:1969356800   DEBUG: ------ Window Deinit (DialogExtendedProgressBar.xml) ------\r\n03:11:21 T:1858040896   DEBUG: [script.trakt] service: Queued dispatch: {u'action': u'databaseUpdated'}\r\n03:11:21 T:1858040896   DEBUG: [script.trakt] service: Dispatch: {u'action': u'databaseUpdated'}\r\n```"},"comment":{"url":"https://api.github.com/repos/Razzeee/script.trakt/issues/comments/83959362","html_url":"https://github.com/Razzeee/script.trakt/issues/167#issuecomment-83959362","issue_url":"https://api.github.com/repos/Razzeee/script.trakt/issues/167","id":83959362,"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-03-20T09:00:10Z","updated_at":"2015-03-20T09:00:10Z","body":"Well as you can see from your log script.trakt created an databaseUpdated action.\r\nThis means a scan will be triggered, if you have it activated. It might take some seconds for it to start, as it's called via a queue.\r\n\r\nSee here for the implementation.\r\nhttps://github.com/Razzeee/script.trakt/blob/master/service.py#L47\r\n\r\nYour log is pretty much cut off, when its getting interesting. So thats all I can say, with these infos."}}