{"action":"created","comment":{"url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/comments/58289648","id":58289648,"diff_hunk":"@@ -0,0 +1,29 @@\n+# -*- coding: utf-8 -*-\n+import sys\n+import os\n+import xbmc\n+import xbmcgui\n+import xbmcaddon\n+\n+\n+__addon__ = xbmcaddon.Addon(id='script.sleep')\n+__cwd__ = __addon__.getAddonInfo('path').decode(\"utf-8\")\n+__resource__ = xbmc.translatePath(os.path.join(__cwd__, 'resources').encode(\"utf-8\")).decode(\"utf-8\")\n+__lib__ = xbmc.translatePath(os.path.join(__resource__, 'lib').encode(\"utf-8\")).decode(\"utf-8\")\n+\n+sys.path.append(__resource__)\n+sys.path.append(__lib__)","path":"script.sleep/default.py","position":15,"original_position":15,"commit_id":"b1b7c31b92f81755a4ae45cefc5aad67eeb05209","original_commit_id":"80fb6171e2a8e789c6799ccd2d23dbc3d3641884","user":{"login":"robwebset","id":7744101,"avatar_url":"https://avatars.githubusercontent.com/u/7744101?v=3","gravatar_id":"","url":"https://api.github.com/users/robwebset","html_url":"https://github.com/robwebset","followers_url":"https://api.github.com/users/robwebset/followers","following_url":"https://api.github.com/users/robwebset/following{/other_user}","gists_url":"https://api.github.com/users/robwebset/gists{/gist_id}","starred_url":"https://api.github.com/users/robwebset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwebset/subscriptions","organizations_url":"https://api.github.com/users/robwebset/orgs","repos_url":"https://api.github.com/users/robwebset/repos","events_url":"https://api.github.com/users/robwebset/events{/privacy}","received_events_url":"https://api.github.com/users/robwebset/received_events","type":"User","site_admin":false},"body":"OK, got it working now - I'd only added init.py to the lib directory, needed it in the resources one as well","created_at":"2016-04-02T06:40:02Z","updated_at":"2016-04-02T06:40:02Z","html_url":"https://github.com/xbmc/repo-scripts/pull/64#discussion_r58289648","pull_request_url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/comments/58289648"},"html":{"href":"https://github.com/xbmc/repo-scripts/pull/64#discussion_r58289648"},"pull_request":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64","id":63473352,"html_url":"https://github.com/xbmc/repo-scripts/pull/64","diff_url":"https://github.com/xbmc/repo-scripts/pull/64.diff","patch_url":"https://github.com/xbmc/repo-scripts/pull/64.patch","issue_url":"https://api.github.com/repos/xbmc/repo-scripts/issues/64","number":64,"state":"closed","locked":false,"title":"[script.sleep] 1.0.0","user":{"login":"robwebset","id":7744101,"avatar_url":"https://avatars.githubusercontent.com/u/7744101?v=3","gravatar_id":"","url":"https://api.github.com/users/robwebset","html_url":"https://github.com/robwebset","followers_url":"https://api.github.com/users/robwebset/followers","following_url":"https://api.github.com/users/robwebset/following{/other_user}","gists_url":"https://api.github.com/users/robwebset/gists{/gist_id}","starred_url":"https://api.github.com/users/robwebset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwebset/subscriptions","organizations_url":"https://api.github.com/users/robwebset/orgs","repos_url":"https://api.github.com/users/robwebset/repos","events_url":"https://api.github.com/users/robwebset/events{/privacy}","received_events_url":"https://api.github.com/users/robwebset/received_events","type":"User","site_admin":false},"body":"A new addon to include please, details on the forum.\r\n\r\nhttp://forum.kodi.tv/showthread.php?tid=261959\r\n\r\nFor releases Isengard onwards","created_at":"2016-03-19T17:26:12Z","updated_at":"2016-04-02T06:40:02Z","closed_at":"2016-03-20T15:11:23Z","merged_at":"2016-03-20T15:11:23Z","merge_commit_sha":"eb72cd8471a707b66ed87d73e4159ee4b5afa4dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64/commits","review_comments_url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64/comments","review_comment_url":"https://api.github.com/repos/xbmc/repo-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xbmc/repo-scripts/issues/64/comments","statuses_url":"https://api.github.com/repos/xbmc/repo-scripts/statuses/b1b7c31b92f81755a4ae45cefc5aad67eeb05209","head":{"label":"robwebset:script-sleep-1.0.0","ref":"script-sleep-1.0.0","sha":"b1b7c31b92f81755a4ae45cefc5aad67eeb05209","user":{"login":"robwebset","id":7744101,"avatar_url":"https://avatars.githubusercontent.com/u/7744101?v=3","gravatar_id":"","url":"https://api.github.com/users/robwebset","html_url":"https://github.com/robwebset","followers_url":"https://api.github.com/users/robwebset/followers","following_url":"https://api.github.com/users/robwebset/following{/other_user}","gists_url":"https://api.github.com/users/robwebset/gists{/gist_id}","starred_url":"https://api.github.com/users/robwebset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwebset/subscriptions","organizations_url":"https://api.github.com/users/robwebset/orgs","repos_url":"https://api.github.com/users/robwebset/repos","events_url":"https://api.github.com/users/robwebset/events{/privacy}","received_events_url":"https://api.github.com/users/robwebset/received_events","type":"User","site_admin":false},"repo":{"id":54268313,"name":"repo-scripts","full_name":"robwebset/repo-scripts","owner":{"login":"robwebset","id":7744101,"avatar_url":"https://avatars.githubusercontent.com/u/7744101?v=3","gravatar_id":"","url":"https://api.github.com/users/robwebset","html_url":"https://github.com/robwebset","followers_url":"https://api.github.com/users/robwebset/followers","following_url":"https://api.github.com/users/robwebset/following{/other_user}","gists_url":"https://api.github.com/users/robwebset/gists{/gist_id}","starred_url":"https://api.github.com/users/robwebset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwebset/subscriptions","organizations_url":"https://api.github.com/users/robwebset/orgs","repos_url":"https://api.github.com/users/robwebset/repos","events_url":"https://api.github.com/users/robwebset/events{/privacy}","received_events_url":"https://api.github.com/users/robwebset/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robwebset/repo-scripts","description":"Official source repository for Kodi script add-ons","fork":true,"url":"https://api.github.com/repos/robwebset/repo-scripts","forks_url":"https://api.github.com/repos/robwebset/repo-scripts/forks","keys_url":"https://api.github.com/repos/robwebset/repo-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robwebset/repo-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robwebset/repo-scripts/teams","hooks_url":"https://api.github.com/repos/robwebset/repo-scripts/hooks","issue_events_url":"https://api.github.com/repos/robwebset/repo-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/robwebset/repo-scripts/events","assignees_url":"https://api.github.com/repos/robwebset/repo-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/robwebset/repo-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/robwebset/repo-scripts/tags","blobs_url":"https://api.github.com/repos/robwebset/repo-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robwebset/repo-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robwebset/repo-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/robwebset/repo-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robwebset/repo-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/robwebset/repo-scripts/languages","stargazers_url":"https://api.github.com/repos/robwebset/repo-scripts/stargazers","contributors_url":"https://api.github.com/repos/robwebset/repo-scripts/contributors","subscribers_url":"https://api.github.com/repos/robwebset/repo-scripts/subscribers","subscription_url":"https://api.github.com/repos/robwebset/repo-scripts/subscription","commits_url":"https://api.github.com/repos/robwebset/repo-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/robwebset/repo-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/robwebset/repo-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/robwebset/repo-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/robwebset/repo-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/robwebset/repo-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robwebset/repo-scripts/merges","archive_url":"https://api.github.com/repos/robwebset/repo-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robwebset/repo-scripts/downloads","issues_url":"https://api.github.com/repos/robwebset/repo-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/robwebset/repo-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/robwebset/repo-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/robwebset/repo-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robwebset/repo-scripts/labels{/name}","releases_url":"https://api.github.com/repos/robwebset/repo-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/robwebset/repo-scripts/deployments","created_at":"2016-03-19T13:51:04Z","updated_at":"2016-01-13T18:04:34Z","pushed_at":"2016-04-01T18:28:09Z","git_url":"git://github.com/robwebset/repo-scripts.git","ssh_url":"git@github.com:robwebset/repo-scripts.git","clone_url":"https://github.com/robwebset/repo-scripts.git","svn_url":"https://github.com/robwebset/repo-scripts","homepage":"","size":179474,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xbmc:isengard","ref":"isengard","sha":"f3c937fd98f8bcf495975e37ea8f4a1912588a5c","user":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"repo":{"id":25119390,"name":"repo-scripts","full_name":"xbmc/repo-scripts","owner":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xbmc/repo-scripts","description":"Official source repository for Kodi script add-ons","fork":false,"url":"https://api.github.com/repos/xbmc/repo-scripts","forks_url":"https://api.github.com/repos/xbmc/repo-scripts/forks","keys_url":"https://api.github.com/repos/xbmc/repo-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xbmc/repo-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xbmc/repo-scripts/teams","hooks_url":"https://api.github.com/repos/xbmc/repo-scripts/hooks","issue_events_url":"https://api.github.com/repos/xbmc/repo-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/xbmc/repo-scripts/events","assignees_url":"https://api.github.com/repos/xbmc/repo-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/xbmc/repo-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/xbmc/repo-scripts/tags","blobs_url":"https://api.github.com/repos/xbmc/repo-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xbmc/repo-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xbmc/repo-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/xbmc/repo-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xbmc/repo-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/xbmc/repo-scripts/languages","stargazers_url":"https://api.github.com/repos/xbmc/repo-scripts/stargazers","contributors_url":"https://api.github.com/repos/xbmc/repo-scripts/contributors","subscribers_url":"https://api.github.com/repos/xbmc/repo-scripts/subscribers","subscription_url":"https://api.github.com/repos/xbmc/repo-scripts/subscription","commits_url":"https://api.github.com/repos/xbmc/repo-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/xbmc/repo-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/xbmc/repo-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/xbmc/repo-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/xbmc/repo-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/xbmc/repo-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xbmc/repo-scripts/merges","archive_url":"https://api.github.com/repos/xbmc/repo-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xbmc/repo-scripts/downloads","issues_url":"https://api.github.com/repos/xbmc/repo-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/xbmc/repo-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/xbmc/repo-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/xbmc/repo-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xbmc/repo-scripts/labels{/name}","releases_url":"https://api.github.com/repos/xbmc/repo-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/xbmc/repo-scripts/deployments","created_at":"2014-10-12T12:57:15Z","updated_at":"2016-03-20T15:06:13Z","pushed_at":"2016-04-01T18:26:56Z","git_url":"git://github.com/xbmc/repo-scripts.git","ssh_url":"git@github.com:xbmc/repo-scripts.git","clone_url":"https://github.com/xbmc/repo-scripts.git","svn_url":"https://github.com/xbmc/repo-scripts","homepage":"","size":184247,"stargazers_count":8,"watchers_count":8,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":4,"forks":49,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64"},"html":{"href":"https://github.com/xbmc/repo-scripts/pull/64"},"issue":{"href":"https://api.github.com/repos/xbmc/repo-scripts/issues/64"},"comments":{"href":"https://api.github.com/repos/xbmc/repo-scripts/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xbmc/repo-scripts/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/xbmc/repo-scripts/statuses/b1b7c31b92f81755a4ae45cefc5aad67eeb05209"}}}}