{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1","id":32192461,"html_url":"https://github.com/JasonLG1979/pithos/pull/1","diff_url":"https://github.com/JasonLG1979/pithos/pull/1.diff","patch_url":"https://github.com/JasonLG1979/pithos/pull/1.patch","issue_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/1","number":1,"state":"open","locked":false,"title":"Better UI loop handling","user":{"login":"JasonLG1979","id":6667703,"avatar_url":"https://avatars.githubusercontent.com/u/6667703?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLG1979","html_url":"https://github.com/JasonLG1979","followers_url":"https://api.github.com/users/JasonLG1979/followers","following_url":"https://api.github.com/users/JasonLG1979/following{/other_user}","gists_url":"https://api.github.com/users/JasonLG1979/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLG1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLG1979/subscriptions","organizations_url":"https://api.github.com/users/JasonLG1979/orgs","repos_url":"https://api.github.com/users/JasonLG1979/repos","events_url":"https://api.github.com/users/JasonLG1979/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLG1979/received_events","type":"User","site_admin":false},"body":"As it sits Pithos starts a new UI loop every time play is pressed(maybe even more often?) and never destroys old loops. They stack up over time creating a small memory leak of sorts. This patch makes Pithos handle the UI loop more intelligently by starting/creating it when needed and stopping/destroying it when it's not needed (like when Pithos is paused). Credit for the code goes to the Exaile devs as it's pretty much a copy and paste of their code with a little tweaking to make it work with Pithos.","created_at":"2015-03-30T01:16:11Z","updated_at":"2015-03-30T01:16:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1/commits","review_comments_url":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1/comments","review_comment_url":"https://api.github.com/repos/JasonLG1979/pithos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/1/comments","statuses_url":"https://api.github.com/repos/JasonLG1979/pithos/statuses/de56bd8c10620782334eebda80e9474a47201835","head":{"label":"JasonLG1979:JasonLG1979-UI-loop-improvement","ref":"JasonLG1979-UI-loop-improvement","sha":"de56bd8c10620782334eebda80e9474a47201835","user":{"login":"JasonLG1979","id":6667703,"avatar_url":"https://avatars.githubusercontent.com/u/6667703?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLG1979","html_url":"https://github.com/JasonLG1979","followers_url":"https://api.github.com/users/JasonLG1979/followers","following_url":"https://api.github.com/users/JasonLG1979/following{/other_user}","gists_url":"https://api.github.com/users/JasonLG1979/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLG1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLG1979/subscriptions","organizations_url":"https://api.github.com/users/JasonLG1979/orgs","repos_url":"https://api.github.com/users/JasonLG1979/repos","events_url":"https://api.github.com/users/JasonLG1979/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLG1979/received_events","type":"User","site_admin":false},"repo":{"id":33095650,"name":"pithos","full_name":"JasonLG1979/pithos","owner":{"login":"JasonLG1979","id":6667703,"avatar_url":"https://avatars.githubusercontent.com/u/6667703?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLG1979","html_url":"https://github.com/JasonLG1979","followers_url":"https://api.github.com/users/JasonLG1979/followers","following_url":"https://api.github.com/users/JasonLG1979/following{/other_user}","gists_url":"https://api.github.com/users/JasonLG1979/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLG1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLG1979/subscriptions","organizations_url":"https://api.github.com/users/JasonLG1979/orgs","repos_url":"https://api.github.com/users/JasonLG1979/repos","events_url":"https://api.github.com/users/JasonLG1979/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLG1979/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JasonLG1979/pithos","description":"A Pandora Radio Client","fork":true,"url":"https://api.github.com/repos/JasonLG1979/pithos","forks_url":"https://api.github.com/repos/JasonLG1979/pithos/forks","keys_url":"https://api.github.com/repos/JasonLG1979/pithos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JasonLG1979/pithos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JasonLG1979/pithos/teams","hooks_url":"https://api.github.com/repos/JasonLG1979/pithos/hooks","issue_events_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/events{/number}","events_url":"https://api.github.com/repos/JasonLG1979/pithos/events","assignees_url":"https://api.github.com/repos/JasonLG1979/pithos/assignees{/user}","branches_url":"https://api.github.com/repos/JasonLG1979/pithos/branches{/branch}","tags_url":"https://api.github.com/repos/JasonLG1979/pithos/tags","blobs_url":"https://api.github.com/repos/JasonLG1979/pithos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JasonLG1979/pithos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JasonLG1979/pithos/git/refs{/sha}","trees_url":"https://api.github.com/repos/JasonLG1979/pithos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JasonLG1979/pithos/statuses/{sha}","languages_url":"https://api.github.com/repos/JasonLG1979/pithos/languages","stargazers_url":"https://api.github.com/repos/JasonLG1979/pithos/stargazers","contributors_url":"https://api.github.com/repos/JasonLG1979/pithos/contributors","subscribers_url":"https://api.github.com/repos/JasonLG1979/pithos/subscribers","subscription_url":"https://api.github.com/repos/JasonLG1979/pithos/subscription","commits_url":"https://api.github.com/repos/JasonLG1979/pithos/commits{/sha}","git_commits_url":"https://api.github.com/repos/JasonLG1979/pithos/git/commits{/sha}","comments_url":"https://api.github.com/repos/JasonLG1979/pithos/comments{/number}","issue_comment_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/comments{/number}","contents_url":"https://api.github.com/repos/JasonLG1979/pithos/contents/{+path}","compare_url":"https://api.github.com/repos/JasonLG1979/pithos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JasonLG1979/pithos/merges","archive_url":"https://api.github.com/repos/JasonLG1979/pithos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JasonLG1979/pithos/downloads","issues_url":"https://api.github.com/repos/JasonLG1979/pithos/issues{/number}","pulls_url":"https://api.github.com/repos/JasonLG1979/pithos/pulls{/number}","milestones_url":"https://api.github.com/repos/JasonLG1979/pithos/milestones{/number}","notifications_url":"https://api.github.com/repos/JasonLG1979/pithos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JasonLG1979/pithos/labels{/name}","releases_url":"https://api.github.com/repos/JasonLG1979/pithos/releases{/id}","created_at":"2015-03-30T00:42:20Z","updated_at":"2015-03-30T00:42:21Z","pushed_at":"2015-03-30T01:15:19Z","git_url":"git://github.com/JasonLG1979/pithos.git","ssh_url":"git@github.com:JasonLG1979/pithos.git","clone_url":"https://github.com/JasonLG1979/pithos.git","svn_url":"https://github.com/JasonLG1979/pithos","homepage":"https://pithos.github.io","size":2306,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JasonLG1979:master","ref":"master","sha":"098f7e1500cc56855c7427b2eb877a33c6fb6aa6","user":{"login":"JasonLG1979","id":6667703,"avatar_url":"https://avatars.githubusercontent.com/u/6667703?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLG1979","html_url":"https://github.com/JasonLG1979","followers_url":"https://api.github.com/users/JasonLG1979/followers","following_url":"https://api.github.com/users/JasonLG1979/following{/other_user}","gists_url":"https://api.github.com/users/JasonLG1979/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLG1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLG1979/subscriptions","organizations_url":"https://api.github.com/users/JasonLG1979/orgs","repos_url":"https://api.github.com/users/JasonLG1979/repos","events_url":"https://api.github.com/users/JasonLG1979/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLG1979/received_events","type":"User","site_admin":false},"repo":{"id":33095650,"name":"pithos","full_name":"JasonLG1979/pithos","owner":{"login":"JasonLG1979","id":6667703,"avatar_url":"https://avatars.githubusercontent.com/u/6667703?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLG1979","html_url":"https://github.com/JasonLG1979","followers_url":"https://api.github.com/users/JasonLG1979/followers","following_url":"https://api.github.com/users/JasonLG1979/following{/other_user}","gists_url":"https://api.github.com/users/JasonLG1979/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLG1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLG1979/subscriptions","organizations_url":"https://api.github.com/users/JasonLG1979/orgs","repos_url":"https://api.github.com/users/JasonLG1979/repos","events_url":"https://api.github.com/users/JasonLG1979/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLG1979/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JasonLG1979/pithos","description":"A Pandora Radio Client","fork":true,"url":"https://api.github.com/repos/JasonLG1979/pithos","forks_url":"https://api.github.com/repos/JasonLG1979/pithos/forks","keys_url":"https://api.github.com/repos/JasonLG1979/pithos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JasonLG1979/pithos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JasonLG1979/pithos/teams","hooks_url":"https://api.github.com/repos/JasonLG1979/pithos/hooks","issue_events_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/events{/number}","events_url":"https://api.github.com/repos/JasonLG1979/pithos/events","assignees_url":"https://api.github.com/repos/JasonLG1979/pithos/assignees{/user}","branches_url":"https://api.github.com/repos/JasonLG1979/pithos/branches{/branch}","tags_url":"https://api.github.com/repos/JasonLG1979/pithos/tags","blobs_url":"https://api.github.com/repos/JasonLG1979/pithos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JasonLG1979/pithos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JasonLG1979/pithos/git/refs{/sha}","trees_url":"https://api.github.com/repos/JasonLG1979/pithos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JasonLG1979/pithos/statuses/{sha}","languages_url":"https://api.github.com/repos/JasonLG1979/pithos/languages","stargazers_url":"https://api.github.com/repos/JasonLG1979/pithos/stargazers","contributors_url":"https://api.github.com/repos/JasonLG1979/pithos/contributors","subscribers_url":"https://api.github.com/repos/JasonLG1979/pithos/subscribers","subscription_url":"https://api.github.com/repos/JasonLG1979/pithos/subscription","commits_url":"https://api.github.com/repos/JasonLG1979/pithos/commits{/sha}","git_commits_url":"https://api.github.com/repos/JasonLG1979/pithos/git/commits{/sha}","comments_url":"https://api.github.com/repos/JasonLG1979/pithos/comments{/number}","issue_comment_url":"https://api.github.com/repos/JasonLG1979/pithos/issues/comments{/number}","contents_url":"https://api.github.com/repos/JasonLG1979/pithos/contents/{+path}","compare_url":"https://api.github.com/repos/JasonLG1979/pithos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JasonLG1979/pithos/merges","archive_url":"https://api.github.com/repos/JasonLG1979/pithos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JasonLG1979/pithos/downloads","issues_url":"https://api.github.com/repos/JasonLG1979/pithos/issues{/number}","pulls_url":"https://api.github.com/repos/JasonLG1979/pithos/pulls{/number}","milestones_url":"https://api.github.com/repos/JasonLG1979/pithos/milestones{/number}","notifications_url":"https://api.github.com/repos/JasonLG1979/pithos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JasonLG1979/pithos/labels{/name}","releases_url":"https://api.github.com/repos/JasonLG1979/pithos/releases{/id}","created_at":"2015-03-30T00:42:20Z","updated_at":"2015-03-30T00:42:21Z","pushed_at":"2015-03-30T01:15:19Z","git_url":"git://github.com/JasonLG1979/pithos.git","ssh_url":"git@github.com:JasonLG1979/pithos.git","clone_url":"https://github.com/JasonLG1979/pithos.git","svn_url":"https://github.com/JasonLG1979/pithos","homepage":"https://pithos.github.io","size":2306,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1"},"html":{"href":"https://github.com/JasonLG1979/pithos/pull/1"},"issue":{"href":"https://api.github.com/repos/JasonLG1979/pithos/issues/1"},"comments":{"href":"https://api.github.com/repos/JasonLG1979/pithos/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/JasonLG1979/pithos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JasonLG1979/pithos/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/JasonLG1979/pithos/statuses/de56bd8c10620782334eebda80e9474a47201835"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":3,"changed_files":1}}