{"action":"created","comment":{"url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments/40239297","id":40239297,"diff_hunk":"@@ -13,82 +16,108 @@\n #  You should have received a copy of the GNU General Public License\n #  along with PlexPy.  If not, see <http://www.gnu.org/licenses/>.\n \n-from plexpy import db, cache, versioncheck, logger, helpers\n-\n+from plexpy import versioncheck, logger, helpers#, db check why this fails\n+import os\n import plexpy\n import json\n+import traceback\n+import cherrypy\n+import re\n from xml.dom import minidom\n \n-cmd_list = ['getHistory', 'getLogs', 'getVersion', 'checkGithub', 'shutdown', 'restart', 'update']\n+cmd_list = ['getHistory', 'getLogs', 'getVersion', 'checkGithub', 'shutdown',\n+            'restart', 'update']\n \n \n class Api(object):\n \n     def __init__(self):\n-\n         self.apikey = None\n         self.cmd = None\n         self.id = None\n-\n         self.kwargs = None\n-\n         self.data = None\n-\n+        self.msg = None\n         self.callback = None\n+        self.result_type = 'error'\n \n     def checkParams(self, *args, **kwargs):","path":"plexpy/api.py","position":43,"original_position":43,"commit_id":"b14f47d9141bc8546be6790ce2da31d7e5d5c15b","original_commit_id":"b14f47d9141bc8546be6790ce2da31d7e5d5c15b","user":{"login":"drzoidberg33","id":1313205,"avatar_url":"https://avatars.githubusercontent.com/u/1313205?v=3","gravatar_id":"","url":"https://api.github.com/users/drzoidberg33","html_url":"https://github.com/drzoidberg33","followers_url":"https://api.github.com/users/drzoidberg33/followers","following_url":"https://api.github.com/users/drzoidberg33/following{/other_user}","gists_url":"https://api.github.com/users/drzoidberg33/gists{/gist_id}","starred_url":"https://api.github.com/users/drzoidberg33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzoidberg33/subscriptions","organizations_url":"https://api.github.com/users/drzoidberg33/orgs","repos_url":"https://api.github.com/users/drzoidberg33/repos","events_url":"https://api.github.com/users/drzoidberg33/events{/privacy}","received_events_url":"https://api.github.com/users/drzoidberg33/received_events","type":"User","site_admin":false},"body":"The new changes break this function - the initial call from webserve.py expects this function to return something. It now no longer returns anything and none of these errors are going to get caught properly (e.g. you can use any apikey).","created_at":"2015-09-23T18:28:36Z","updated_at":"2015-09-23T18:28:36Z","html_url":"https://github.com/drzoidberg33/plexpy/pull/200#discussion_r40239297","pull_request_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments/40239297"},"html":{"href":"https://github.com/drzoidberg33/plexpy/pull/200#discussion_r40239297"},"pull_request":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200","id":45729066,"html_url":"https://github.com/drzoidberg33/plexpy/pull/200","diff_url":"https://github.com/drzoidberg33/plexpy/pull/200.diff","patch_url":"https://github.com/drzoidberg33/plexpy/pull/200.patch","issue_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/200","number":200,"state":"open","locked":false,"title":"initial api changes","user":{"login":"Hellowlol","id":1214134,"avatar_url":"https://avatars.githubusercontent.com/u/1214134?v=3","gravatar_id":"","url":"https://api.github.com/users/Hellowlol","html_url":"https://github.com/Hellowlol","followers_url":"https://api.github.com/users/Hellowlol/followers","following_url":"https://api.github.com/users/Hellowlol/following{/other_user}","gists_url":"https://api.github.com/users/Hellowlol/gists{/gist_id}","starred_url":"https://api.github.com/users/Hellowlol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hellowlol/subscriptions","organizations_url":"https://api.github.com/users/Hellowlol/orgs","repos_url":"https://api.github.com/users/Hellowlol/repos","events_url":"https://api.github.com/users/Hellowlol/events{/privacy}","received_events_url":"https://api.github.com/users/Hellowlol/received_events","type":"User","site_admin":false},"body":"This is just a initial pr so i can check with you if this is something you want or not?","created_at":"2015-09-22T23:16:31Z","updated_at":"2015-09-23T18:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce5216cb529bb8385cdfc3ca497ad2d9c4cc44e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200/commits","review_comments_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200/comments","review_comment_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/200/comments","statuses_url":"https://api.github.com/repos/drzoidberg33/plexpy/statuses/b14f47d9141bc8546be6790ce2da31d7e5d5c15b","head":{"label":"Hellowlol:apistuff","ref":"apistuff","sha":"b14f47d9141bc8546be6790ce2da31d7e5d5c15b","user":{"login":"Hellowlol","id":1214134,"avatar_url":"https://avatars.githubusercontent.com/u/1214134?v=3","gravatar_id":"","url":"https://api.github.com/users/Hellowlol","html_url":"https://github.com/Hellowlol","followers_url":"https://api.github.com/users/Hellowlol/followers","following_url":"https://api.github.com/users/Hellowlol/following{/other_user}","gists_url":"https://api.github.com/users/Hellowlol/gists{/gist_id}","starred_url":"https://api.github.com/users/Hellowlol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hellowlol/subscriptions","organizations_url":"https://api.github.com/users/Hellowlol/orgs","repos_url":"https://api.github.com/users/Hellowlol/repos","events_url":"https://api.github.com/users/Hellowlol/events{/privacy}","received_events_url":"https://api.github.com/users/Hellowlol/received_events","type":"User","site_admin":false},"repo":{"id":42822662,"name":"plexpy","full_name":"Hellowlol/plexpy","owner":{"login":"Hellowlol","id":1214134,"avatar_url":"https://avatars.githubusercontent.com/u/1214134?v=3","gravatar_id":"","url":"https://api.github.com/users/Hellowlol","html_url":"https://github.com/Hellowlol","followers_url":"https://api.github.com/users/Hellowlol/followers","following_url":"https://api.github.com/users/Hellowlol/following{/other_user}","gists_url":"https://api.github.com/users/Hellowlol/gists{/gist_id}","starred_url":"https://api.github.com/users/Hellowlol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hellowlol/subscriptions","organizations_url":"https://api.github.com/users/Hellowlol/orgs","repos_url":"https://api.github.com/users/Hellowlol/repos","events_url":"https://api.github.com/users/Hellowlol/events{/privacy}","received_events_url":"https://api.github.com/users/Hellowlol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hellowlol/plexpy","description":"A Python based monitoring and tracking tool for Plex Media Server.","fork":true,"url":"https://api.github.com/repos/Hellowlol/plexpy","forks_url":"https://api.github.com/repos/Hellowlol/plexpy/forks","keys_url":"https://api.github.com/repos/Hellowlol/plexpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hellowlol/plexpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hellowlol/plexpy/teams","hooks_url":"https://api.github.com/repos/Hellowlol/plexpy/hooks","issue_events_url":"https://api.github.com/repos/Hellowlol/plexpy/issues/events{/number}","events_url":"https://api.github.com/repos/Hellowlol/plexpy/events","assignees_url":"https://api.github.com/repos/Hellowlol/plexpy/assignees{/user}","branches_url":"https://api.github.com/repos/Hellowlol/plexpy/branches{/branch}","tags_url":"https://api.github.com/repos/Hellowlol/plexpy/tags","blobs_url":"https://api.github.com/repos/Hellowlol/plexpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hellowlol/plexpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hellowlol/plexpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hellowlol/plexpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hellowlol/plexpy/statuses/{sha}","languages_url":"https://api.github.com/repos/Hellowlol/plexpy/languages","stargazers_url":"https://api.github.com/repos/Hellowlol/plexpy/stargazers","contributors_url":"https://api.github.com/repos/Hellowlol/plexpy/contributors","subscribers_url":"https://api.github.com/repos/Hellowlol/plexpy/subscribers","subscription_url":"https://api.github.com/repos/Hellowlol/plexpy/subscription","commits_url":"https://api.github.com/repos/Hellowlol/plexpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hellowlol/plexpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hellowlol/plexpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hellowlol/plexpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hellowlol/plexpy/contents/{+path}","compare_url":"https://api.github.com/repos/Hellowlol/plexpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hellowlol/plexpy/merges","archive_url":"https://api.github.com/repos/Hellowlol/plexpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hellowlol/plexpy/downloads","issues_url":"https://api.github.com/repos/Hellowlol/plexpy/issues{/number}","pulls_url":"https://api.github.com/repos/Hellowlol/plexpy/pulls{/number}","milestones_url":"https://api.github.com/repos/Hellowlol/plexpy/milestones{/number}","notifications_url":"https://api.github.com/repos/Hellowlol/plexpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hellowlol/plexpy/labels{/name}","releases_url":"https://api.github.com/repos/Hellowlol/plexpy/releases{/id}","created_at":"2015-09-20T17:41:10Z","updated_at":"2015-09-20T17:41:13Z","pushed_at":"2015-09-22T23:16:30Z","git_url":"git://github.com/Hellowlol/plexpy.git","ssh_url":"git@github.com:Hellowlol/plexpy.git","clone_url":"https://github.com/Hellowlol/plexpy.git","svn_url":"https://github.com/Hellowlol/plexpy","homepage":"","size":9270,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"drzoidberg33:dev","ref":"dev","sha":"302ca85dd33c7523836e97a982ace1126718bcd4","user":{"login":"drzoidberg33","id":1313205,"avatar_url":"https://avatars.githubusercontent.com/u/1313205?v=3","gravatar_id":"","url":"https://api.github.com/users/drzoidberg33","html_url":"https://github.com/drzoidberg33","followers_url":"https://api.github.com/users/drzoidberg33/followers","following_url":"https://api.github.com/users/drzoidberg33/following{/other_user}","gists_url":"https://api.github.com/users/drzoidberg33/gists{/gist_id}","starred_url":"https://api.github.com/users/drzoidberg33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzoidberg33/subscriptions","organizations_url":"https://api.github.com/users/drzoidberg33/orgs","repos_url":"https://api.github.com/users/drzoidberg33/repos","events_url":"https://api.github.com/users/drzoidberg33/events{/privacy}","received_events_url":"https://api.github.com/users/drzoidberg33/received_events","type":"User","site_admin":false},"repo":{"id":31169720,"name":"plexpy","full_name":"drzoidberg33/plexpy","owner":{"login":"drzoidberg33","id":1313205,"avatar_url":"https://avatars.githubusercontent.com/u/1313205?v=3","gravatar_id":"","url":"https://api.github.com/users/drzoidberg33","html_url":"https://github.com/drzoidberg33","followers_url":"https://api.github.com/users/drzoidberg33/followers","following_url":"https://api.github.com/users/drzoidberg33/following{/other_user}","gists_url":"https://api.github.com/users/drzoidberg33/gists{/gist_id}","starred_url":"https://api.github.com/users/drzoidberg33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzoidberg33/subscriptions","organizations_url":"https://api.github.com/users/drzoidberg33/orgs","repos_url":"https://api.github.com/users/drzoidberg33/repos","events_url":"https://api.github.com/users/drzoidberg33/events{/privacy}","received_events_url":"https://api.github.com/users/drzoidberg33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drzoidberg33/plexpy","description":"A Python based monitoring and tracking tool for Plex Media Server.","fork":false,"url":"https://api.github.com/repos/drzoidberg33/plexpy","forks_url":"https://api.github.com/repos/drzoidberg33/plexpy/forks","keys_url":"https://api.github.com/repos/drzoidberg33/plexpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drzoidberg33/plexpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drzoidberg33/plexpy/teams","hooks_url":"https://api.github.com/repos/drzoidberg33/plexpy/hooks","issue_events_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/events{/number}","events_url":"https://api.github.com/repos/drzoidberg33/plexpy/events","assignees_url":"https://api.github.com/repos/drzoidberg33/plexpy/assignees{/user}","branches_url":"https://api.github.com/repos/drzoidberg33/plexpy/branches{/branch}","tags_url":"https://api.github.com/repos/drzoidberg33/plexpy/tags","blobs_url":"https://api.github.com/repos/drzoidberg33/plexpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drzoidberg33/plexpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drzoidberg33/plexpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/drzoidberg33/plexpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drzoidberg33/plexpy/statuses/{sha}","languages_url":"https://api.github.com/repos/drzoidberg33/plexpy/languages","stargazers_url":"https://api.github.com/repos/drzoidberg33/plexpy/stargazers","contributors_url":"https://api.github.com/repos/drzoidberg33/plexpy/contributors","subscribers_url":"https://api.github.com/repos/drzoidberg33/plexpy/subscribers","subscription_url":"https://api.github.com/repos/drzoidberg33/plexpy/subscription","commits_url":"https://api.github.com/repos/drzoidberg33/plexpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/drzoidberg33/plexpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/drzoidberg33/plexpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/drzoidberg33/plexpy/contents/{+path}","compare_url":"https://api.github.com/repos/drzoidberg33/plexpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drzoidberg33/plexpy/merges","archive_url":"https://api.github.com/repos/drzoidberg33/plexpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drzoidberg33/plexpy/downloads","issues_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues{/number}","pulls_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls{/number}","milestones_url":"https://api.github.com/repos/drzoidberg33/plexpy/milestones{/number}","notifications_url":"https://api.github.com/repos/drzoidberg33/plexpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drzoidberg33/plexpy/labels{/name}","releases_url":"https://api.github.com/repos/drzoidberg33/plexpy/releases{/id}","created_at":"2015-02-22T16:36:06Z","updated_at":"2015-09-23T05:36:31Z","pushed_at":"2015-09-23T17:40:28Z","git_url":"git://github.com/drzoidberg33/plexpy.git","ssh_url":"git@github.com:drzoidberg33/plexpy.git","clone_url":"https://github.com/drzoidberg33/plexpy.git","svn_url":"https://github.com/drzoidberg33/plexpy","homepage":"","size":9270,"stargazers_count":100,"watchers_count":100,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":44,"forks":24,"open_issues":44,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200"},"html":{"href":"https://github.com/drzoidberg33/plexpy/pull/200"},"issue":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/issues/200"},"comments":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/statuses/b14f47d9141bc8546be6790ce2da31d7e5d5c15b"}}}}