{"action":"created","comment":{"url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments/70738947","id":70738947,"diff_hunk":"@@ -2754,32 +2724,82 @@ class HIPCHAT(object):\n     def __init__(self):\n         self.apiurl = plexpy.CONFIG.HIPCHAT_URL\n         self.color = plexpy.CONFIG.HIPCHAT_COLOR\n-        self.incl_subject = plexpy.CONFIG.HIPCHAT_INCL_SUBJECT\n         self.emoticon = plexpy.CONFIG.HIPCHAT_EMOTICON\n+        self.from_subject = plexpy.CONFIG.HIPCHAT_FROM_SUBJECT\n+        self.incl_pmslink = plexpy.CONFIG.FACEBOOK_INCL_PMSLINK\n+        self.incl_poster = plexpy.CONFIG.FACEBOOK_INCL_POSTER\n+        self.incl_subject = plexpy.CONFIG.HIPCHAT_INCL_SUBJECT\n \n-    def notify(self, message, subject):\n+    def notify(self, message, subject, **kwargs):\n         if not message or not subject:\n             return\n-        \n+\n+        data = {'notify': 'false'}\n+\n+        text = message.encode('utf-8')\n+\n         if self.incl_subject:\n-            text = subject.encode('utf-8') + ': ' + message.encode('utf-8')\n-        else:\n-            text = message.encode('utf-8')\n+            text = subject.encode('utf-8') + ': ' + text\n \n         if self.emoticon:","path":"plexpy/notifiers.py","position":277,"original_position":277,"commit_id":"9cdd2eef816282341d920c552fac9a974281a7c4","original_commit_id":"9cdd2eef816282341d920c552fac9a974281a7c4","user":{"login":"JonnyWong16","id":9099342,"avatar_url":"https://avatars.githubusercontent.com/u/9099342?v=3","gravatar_id":"","url":"https://api.github.com/users/JonnyWong16","html_url":"https://github.com/JonnyWong16","followers_url":"https://api.github.com/users/JonnyWong16/followers","following_url":"https://api.github.com/users/JonnyWong16/following{/other_user}","gists_url":"https://api.github.com/users/JonnyWong16/gists{/gist_id}","starred_url":"https://api.github.com/users/JonnyWong16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonnyWong16/subscriptions","organizations_url":"https://api.github.com/users/JonnyWong16/orgs","repos_url":"https://api.github.com/users/JonnyWong16/repos","events_url":"https://api.github.com/users/JonnyWong16/events{/privacy}","received_events_url":"https://api.github.com/users/JonnyWong16/received_events","type":"User","site_admin":false},"body":"Can't have emoticon if \"Include Poster\" is checked.\r\n\r\nThe notification still appends `(plexpy)` to the beginning.","created_at":"2016-07-14T02:05:19Z","updated_at":"2016-07-14T02:05:19Z","html_url":"https://github.com/drzoidberg33/plexpy/pull/779#discussion_r70738947","pull_request_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779","_links":{"self":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments/70738947"},"html":{"href":"https://github.com/drzoidberg33/plexpy/pull/779#discussion_r70738947"},"pull_request":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779"}}},"pull_request":{"url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779","id":77312932,"html_url":"https://github.com/drzoidberg33/plexpy/pull/779","diff_url":"https://github.com/drzoidberg33/plexpy/pull/779.diff","patch_url":"https://github.com/drzoidberg33/plexpy/pull/779.patch","issue_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/779","number":779,"state":"open","locked":false,"title":"Adds posters option for Hipchat and metadata formatting functions.","user":{"login":"aboron","id":605448,"avatar_url":"https://avatars.githubusercontent.com/u/605448?v=3","gravatar_id":"","url":"https://api.github.com/users/aboron","html_url":"https://github.com/aboron","followers_url":"https://api.github.com/users/aboron/followers","following_url":"https://api.github.com/users/aboron/following{/other_user}","gists_url":"https://api.github.com/users/aboron/gists{/gist_id}","starred_url":"https://api.github.com/users/aboron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboron/subscriptions","organizations_url":"https://api.github.com/users/aboron/orgs","repos_url":"https://api.github.com/users/aboron/repos","events_url":"https://api.github.com/users/aboron/events{/privacy}","received_events_url":"https://api.github.com/users/aboron/received_events","type":"User","site_admin":false},"body":"Example poster notification ( Closed and Open )\r\n![closed](https://cloud.githubusercontent.com/assets/605448/16809683/29cfef4c-48ef-11e6-9f8c-50b131a7ad18.png)\r\n![open](https://cloud.githubusercontent.com/assets/605448/16809688/2e24ad62-48ef-11e6-8694-e2be00139c89.png)\r\n\r\n","created_at":"2016-07-13T15:45:56Z","updated_at":"2016-07-14T02:05:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce295848f708ae46c0dbc68a570d6b57245a84a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779/commits","review_comments_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779/comments","review_comment_url":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drzoidberg33/plexpy/issues/779/comments","statuses_url":"https://api.github.com/repos/drzoidberg33/plexpy/statuses/9cdd2eef816282341d920c552fac9a974281a7c4","head":{"label":"aboron:dev","ref":"dev","sha":"9cdd2eef816282341d920c552fac9a974281a7c4","user":{"login":"aboron","id":605448,"avatar_url":"https://avatars.githubusercontent.com/u/605448?v=3","gravatar_id":"","url":"https://api.github.com/users/aboron","html_url":"https://github.com/aboron","followers_url":"https://api.github.com/users/aboron/followers","following_url":"https://api.github.com/users/aboron/following{/other_user}","gists_url":"https://api.github.com/users/aboron/gists{/gist_id}","starred_url":"https://api.github.com/users/aboron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboron/subscriptions","organizations_url":"https://api.github.com/users/aboron/orgs","repos_url":"https://api.github.com/users/aboron/repos","events_url":"https://api.github.com/users/aboron/events{/privacy}","received_events_url":"https://api.github.com/users/aboron/received_events","type":"User","site_admin":false},"repo":{"id":63181637,"name":"plexpy","full_name":"aboron/plexpy","owner":{"login":"aboron","id":605448,"avatar_url":"https://avatars.githubusercontent.com/u/605448?v=3","gravatar_id":"","url":"https://api.github.com/users/aboron","html_url":"https://github.com/aboron","followers_url":"https://api.github.com/users/aboron/followers","following_url":"https://api.github.com/users/aboron/following{/other_user}","gists_url":"https://api.github.com/users/aboron/gists{/gist_id}","starred_url":"https://api.github.com/users/aboron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboron/subscriptions","organizations_url":"https://api.github.com/users/aboron/orgs","repos_url":"https://api.github.com/users/aboron/repos","events_url":"https://api.github.com/users/aboron/events{/privacy}","received_events_url":"https://api.github.com/users/aboron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aboron/plexpy","description":"A Python based monitoring and tracking tool for Plex Media Server.","fork":true,"url":"https://api.github.com/repos/aboron/plexpy","forks_url":"https://api.github.com/repos/aboron/plexpy/forks","keys_url":"https://api.github.com/repos/aboron/plexpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aboron/plexpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aboron/plexpy/teams","hooks_url":"https://api.github.com/repos/aboron/plexpy/hooks","issue_events_url":"https://api.github.com/repos/aboron/plexpy/issues/events{/number}","events_url":"https://api.github.com/repos/aboron/plexpy/events","assignees_url":"https://api.github.com/repos/aboron/plexpy/assignees{/user}","branches_url":"https://api.github.com/repos/aboron/plexpy/branches{/branch}","tags_url":"https://api.github.com/repos/aboron/plexpy/tags","blobs_url":"https://api.github.com/repos/aboron/plexpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aboron/plexpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aboron/plexpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/aboron/plexpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aboron/plexpy/statuses/{sha}","languages_url":"https://api.github.com/repos/aboron/plexpy/languages","stargazers_url":"https://api.github.com/repos/aboron/plexpy/stargazers","contributors_url":"https://api.github.com/repos/aboron/plexpy/contributors","subscribers_url":"https://api.github.com/repos/aboron/plexpy/subscribers","subscription_url":"https://api.github.com/repos/aboron/plexpy/subscription","commits_url":"https://api.github.com/repos/aboron/plexpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/aboron/plexpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/aboron/plexpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/aboron/plexpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/aboron/plexpy/contents/{+path}","compare_url":"https://api.github.com/repos/aboron/plexpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aboron/plexpy/merges","archive_url":"https://api.github.com/repos/aboron/plexpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aboron/plexpy/downloads","issues_url":"https://api.github.com/repos/aboron/plexpy/issues{/number}","pulls_url":"https://api.github.com/repos/aboron/plexpy/pulls{/number}","milestones_url":"https://api.github.com/repos/aboron/plexpy/milestones{/number}","notifications_url":"https://api.github.com/repos/aboron/plexpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aboron/plexpy/labels{/name}","releases_url":"https://api.github.com/repos/aboron/plexpy/releases{/id}","deployments_url":"https://api.github.com/repos/aboron/plexpy/deployments","created_at":"2016-07-12T18:10:59Z","updated_at":"2016-07-12T18:11:03Z","pushed_at":"2016-07-13T16:33:49Z","git_url":"git://github.com/aboron/plexpy.git","ssh_url":"git@github.com:aboron/plexpy.git","clone_url":"https://github.com/aboron/plexpy.git","svn_url":"https://github.com/aboron/plexpy","homepage":"","size":71318,"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":"a26d6ec6bb54f916fc1b7d003fc30a771b2976db","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}","deployments_url":"https://api.github.com/repos/drzoidberg33/plexpy/deployments","created_at":"2015-02-22T16:36:06Z","updated_at":"2016-07-13T23:33:11Z","pushed_at":"2016-07-13T16:33:49Z","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":101449,"stargazers_count":705,"watchers_count":705,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":84,"forks":120,"open_issues":84,"watchers":705,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779"},"html":{"href":"https://github.com/drzoidberg33/plexpy/pull/779"},"issue":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/issues/779"},"comments":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/issues/779/comments"},"review_comments":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779/comments"},"review_comment":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/pulls/779/commits"},"statuses":{"href":"https://api.github.com/repos/drzoidberg33/plexpy/statuses/9cdd2eef816282341d920c552fac9a974281a7c4"}}}}
{"actor":{"display_login":"JonnyWong16"}}