{"action":"created","issue":{"url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/68","repository_url":"https://api.github.com/repos/m0ngr31/kodi-alexa","labels_url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/68/comments","events_url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/68/events","html_url":"https://github.com/m0ngr31/kodi-alexa/pull/68","id":191147026,"number":68,"title":"Solved update/clean libraries issue with some sleeps","user":{"login":"m0ngr31","id":1045977,"avatar_url":"https://avatars.githubusercontent.com/u/1045977?v=3","gravatar_id":"","url":"https://api.github.com/users/m0ngr31","html_url":"https://github.com/m0ngr31","followers_url":"https://api.github.com/users/m0ngr31/followers","following_url":"https://api.github.com/users/m0ngr31/following{/other_user}","gists_url":"https://api.github.com/users/m0ngr31/gists{/gist_id}","starred_url":"https://api.github.com/users/m0ngr31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m0ngr31/subscriptions","organizations_url":"https://api.github.com/users/m0ngr31/orgs","repos_url":"https://api.github.com/users/m0ngr31/repos","events_url":"https://api.github.com/users/m0ngr31/events{/privacy}","received_events_url":"https://api.github.com/users/m0ngr31/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jingai","id":338896,"avatar_url":"https://avatars.githubusercontent.com/u/338896?v=3","gravatar_id":"","url":"https://api.github.com/users/jingai","html_url":"https://github.com/jingai","followers_url":"https://api.github.com/users/jingai/followers","following_url":"https://api.github.com/users/jingai/following{/other_user}","gists_url":"https://api.github.com/users/jingai/gists{/gist_id}","starred_url":"https://api.github.com/users/jingai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingai/subscriptions","organizations_url":"https://api.github.com/users/jingai/orgs","repos_url":"https://api.github.com/users/jingai/repos","events_url":"https://api.github.com/users/jingai/events{/privacy}","received_events_url":"https://api.github.com/users/jingai/received_events","type":"User","site_admin":false},"assignees":[{"login":"jingai","id":338896,"avatar_url":"https://avatars.githubusercontent.com/u/338896?v=3","gravatar_id":"","url":"https://api.github.com/users/jingai","html_url":"https://github.com/jingai","followers_url":"https://api.github.com/users/jingai/followers","following_url":"https://api.github.com/users/jingai/following{/other_user}","gists_url":"https://api.github.com/users/jingai/gists{/gist_id}","starred_url":"https://api.github.com/users/jingai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingai/subscriptions","organizations_url":"https://api.github.com/users/jingai/orgs","repos_url":"https://api.github.com/users/jingai/repos","events_url":"https://api.github.com/users/jingai/events{/privacy}","received_events_url":"https://api.github.com/users/jingai/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-11-22T22:54:10Z","updated_at":"2016-12-01T17:04:26Z","closed_at":"2016-11-29T20:53:04Z","pull_request":{"url":"https://api.github.com/repos/m0ngr31/kodi-alexa/pulls/68","html_url":"https://github.com/m0ngr31/kodi-alexa/pull/68","diff_url":"https://github.com/m0ngr31/kodi-alexa/pull/68.diff","patch_url":"https://github.com/m0ngr31/kodi-alexa/pull/68.patch"},"body":"Turns out to be an interesting issue:\r\n\r\n- If an update library request is running, clean library will not run. Kodi doesn't queue it or anything\r\n- If you run an clean library, it can take several minutes and time out the session with Alexa\r\n- If you run the clean library method on a different thread (daemonized), you have to have some time for it to start running before the process ends or it won't fire in time\r\n\r\nTo alleviate these issues for now, I added some sleeps. If someone has a better way, just let me know. "},"comment":{"url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/comments/264230988","html_url":"https://github.com/m0ngr31/kodi-alexa/pull/68#issuecomment-264230988","issue_url":"https://api.github.com/repos/m0ngr31/kodi-alexa/issues/68","id":264230988,"user":{"login":"edru","id":1192974,"avatar_url":"https://avatars.githubusercontent.com/u/1192974?v=3","gravatar_id":"","url":"https://api.github.com/users/edru","html_url":"https://github.com/edru","followers_url":"https://api.github.com/users/edru/followers","following_url":"https://api.github.com/users/edru/following{/other_user}","gists_url":"https://api.github.com/users/edru/gists{/gist_id}","starred_url":"https://api.github.com/users/edru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edru/subscriptions","organizations_url":"https://api.github.com/users/edru/orgs","repos_url":"https://api.github.com/users/edru/repos","events_url":"https://api.github.com/users/edru/events{/privacy}","received_events_url":"https://api.github.com/users/edru/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T17:04:26Z","updated_at":"2016-12-01T17:04:26Z","body":"Copying comment from the other post:\r\n\r\nJust updated, seems the behavior is the same. Home screen, video library updates. No cleaning dialog appears and it jumps straight to updating.\r\n\r\nThought that I'd add that i dont think the library can be touched at the same time. I think if its cleaning it cant update, and if its updating it cant clean. You can test this by updating your library, and as its updating try to manually mark something as (un)watched, it wont let you. Dunno if that matters with what you are doing, but remembered you stated something about it being multi threaded - so maybe its trying to do both at the same time.\r\n\r\nIf this makes a difference I am running Kodi on the latest version of Android (a Shield TV)"}}
{"actor":{"display_login":"edru"}}