{"action":"created","comment":{"url":"https://api.github.com/repos/FAForever/client/pulls/comments/88776968","pull_request_review_id":9343127,"id":88776968,"diff_hunk":"@@ -122,7 +122,18 @@ def update(self, message, client):\n         \n         self.name      = message[\"name\"]\n         self.mapname   = message[\"map\"]\n-        self.duration  = time.strftime('%H:%M:%S', time.gmtime(message[\"duration\"]))\n+        if message['end'] == 4294967295:  # = FFFF FFFF (year 2106) aka still playing\n+            seconds = time.time()-message['start']\n+            if seconds > 86400:  # more than 24 hours\n+                self.duration = str(int(seconds/86400)) + \" days<br />&nbsp;! error !\"\n+            elif seconds > 7200:  # more than 2 hours\n+                self.duration = time.strftime('%H:%M:%S', time.gmtime(seconds)) + \"<br />? error ?\"","path":"src/replays/replayitem.py","position":20,"original_position":10,"commit_id":"39343ac076713800e1565784c6b7822eceae43ac","original_commit_id":"458655936334ef3425b8cc4db9a97185ca095e9a","user":{"login":"GrotheFAF","id":19195504,"avatar_url":"https://avatars.githubusercontent.com/u/19195504?v=3","gravatar_id":"","url":"https://api.github.com/users/GrotheFAF","html_url":"https://github.com/GrotheFAF","followers_url":"https://api.github.com/users/GrotheFAF/followers","following_url":"https://api.github.com/users/GrotheFAF/following{/other_user}","gists_url":"https://api.github.com/users/GrotheFAF/gists{/gist_id}","starred_url":"https://api.github.com/users/GrotheFAF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrotheFAF/subscriptions","organizations_url":"https://api.github.com/users/GrotheFAF/orgs","repos_url":"https://api.github.com/users/GrotheFAF/repos","events_url":"https://api.github.com/users/GrotheFAF/events{/privacy}","received_events_url":"https://api.github.com/users/GrotheFAF/received_events","type":"User","site_admin":false},"body":"that is beside purpose here. I want to inform the user.","created_at":"2016-11-19T10:12:32Z","updated_at":"2016-11-19T10:12:32Z","html_url":"https://github.com/FAForever/client/pull/497#discussion_r88776968","pull_request_url":"https://api.github.com/repos/FAForever/client/pulls/497","_links":{"self":{"href":"https://api.github.com/repos/FAForever/client/pulls/comments/88776968"},"html":{"href":"https://github.com/FAForever/client/pull/497#discussion_r88776968"},"pull_request":{"href":"https://api.github.com/repos/FAForever/client/pulls/497"}}},"pull_request":{"url":"https://api.github.com/repos/FAForever/client/pulls/497","id":94113122,"html_url":"https://github.com/FAForever/client/pull/497","diff_url":"https://github.com/FAForever/client/pull/497.diff","patch_url":"https://github.com/FAForever/client/pull/497.patch","issue_url":"https://api.github.com/repos/FAForever/client/issues/497","number":497,"state":"open","locked":false,"title":"fix duration for live games in Replays","user":{"login":"GrotheFAF","id":19195504,"avatar_url":"https://avatars.githubusercontent.com/u/19195504?v=3","gravatar_id":"","url":"https://api.github.com/users/GrotheFAF","html_url":"https://github.com/GrotheFAF","followers_url":"https://api.github.com/users/GrotheFAF/followers","following_url":"https://api.github.com/users/GrotheFAF/following{/other_user}","gists_url":"https://api.github.com/users/GrotheFAF/gists{/gist_id}","starred_url":"https://api.github.com/users/GrotheFAF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrotheFAF/subscriptions","organizations_url":"https://api.github.com/users/GrotheFAF/orgs","repos_url":"https://api.github.com/users/GrotheFAF/repos","events_url":"https://api.github.com/users/GrotheFAF/events{/privacy}","received_events_url":"https://api.github.com/users/GrotheFAF/received_events","type":"User","site_admin":false},"body":"Initial PR:\r\n\r\n- [ ] PR branch should be named `issuenum`-`fix`/`feature`/`cleanup`-`description`\r\n- [ ] Code is split into logical commits\r\n- [ ] Code has tests\r\n- [ ] Final commit includes \"Fixes #issue\" in commit message\r\n\r\nWhen all builds pass and a maintainer is happy with your PR, the \"ready\" label will be applied. Please complete these tasks then:\r\n\r\n- [ ] Rebase onto develop\r\n- [ ] Add changelog entry\r\n- [ ] Remove this entire template section\r\n\r\n","created_at":"2016-11-17T07:09:02Z","updated_at":"2016-11-19T10:12:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dceff90d6dd85f82e6efe94a4c1a59229ef2d9be","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FAForever/client/pulls/497/commits","review_comments_url":"https://api.github.com/repos/FAForever/client/pulls/497/comments","review_comment_url":"https://api.github.com/repos/FAForever/client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FAForever/client/issues/497/comments","statuses_url":"https://api.github.com/repos/FAForever/client/statuses/39343ac076713800e1565784c6b7822eceae43ac","head":{"label":"GrotheFAF:fix-duration-for-live-games","ref":"fix-duration-for-live-games","sha":"39343ac076713800e1565784c6b7822eceae43ac","user":{"login":"GrotheFAF","id":19195504,"avatar_url":"https://avatars.githubusercontent.com/u/19195504?v=3","gravatar_id":"","url":"https://api.github.com/users/GrotheFAF","html_url":"https://github.com/GrotheFAF","followers_url":"https://api.github.com/users/GrotheFAF/followers","following_url":"https://api.github.com/users/GrotheFAF/following{/other_user}","gists_url":"https://api.github.com/users/GrotheFAF/gists{/gist_id}","starred_url":"https://api.github.com/users/GrotheFAF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrotheFAF/subscriptions","organizations_url":"https://api.github.com/users/GrotheFAF/orgs","repos_url":"https://api.github.com/users/GrotheFAF/repos","events_url":"https://api.github.com/users/GrotheFAF/events{/privacy}","received_events_url":"https://api.github.com/users/GrotheFAF/received_events","type":"User","site_admin":false},"repo":{"id":67766235,"name":"client","full_name":"GrotheFAF/client","owner":{"login":"GrotheFAF","id":19195504,"avatar_url":"https://avatars.githubusercontent.com/u/19195504?v=3","gravatar_id":"","url":"https://api.github.com/users/GrotheFAF","html_url":"https://github.com/GrotheFAF","followers_url":"https://api.github.com/users/GrotheFAF/followers","following_url":"https://api.github.com/users/GrotheFAF/following{/other_user}","gists_url":"https://api.github.com/users/GrotheFAF/gists{/gist_id}","starred_url":"https://api.github.com/users/GrotheFAF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrotheFAF/subscriptions","organizations_url":"https://api.github.com/users/GrotheFAF/orgs","repos_url":"https://api.github.com/users/GrotheFAF/repos","events_url":"https://api.github.com/users/GrotheFAF/events{/privacy}","received_events_url":"https://api.github.com/users/GrotheFAF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GrotheFAF/client","description":"FAF Python Client","fork":true,"url":"https://api.github.com/repos/GrotheFAF/client","forks_url":"https://api.github.com/repos/GrotheFAF/client/forks","keys_url":"https://api.github.com/repos/GrotheFAF/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GrotheFAF/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GrotheFAF/client/teams","hooks_url":"https://api.github.com/repos/GrotheFAF/client/hooks","issue_events_url":"https://api.github.com/repos/GrotheFAF/client/issues/events{/number}","events_url":"https://api.github.com/repos/GrotheFAF/client/events","assignees_url":"https://api.github.com/repos/GrotheFAF/client/assignees{/user}","branches_url":"https://api.github.com/repos/GrotheFAF/client/branches{/branch}","tags_url":"https://api.github.com/repos/GrotheFAF/client/tags","blobs_url":"https://api.github.com/repos/GrotheFAF/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GrotheFAF/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GrotheFAF/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/GrotheFAF/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GrotheFAF/client/statuses/{sha}","languages_url":"https://api.github.com/repos/GrotheFAF/client/languages","stargazers_url":"https://api.github.com/repos/GrotheFAF/client/stargazers","contributors_url":"https://api.github.com/repos/GrotheFAF/client/contributors","subscribers_url":"https://api.github.com/repos/GrotheFAF/client/subscribers","subscription_url":"https://api.github.com/repos/GrotheFAF/client/subscription","commits_url":"https://api.github.com/repos/GrotheFAF/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/GrotheFAF/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/GrotheFAF/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/GrotheFAF/client/issues/comments{/number}","contents_url":"https://api.github.com/repos/GrotheFAF/client/contents/{+path}","compare_url":"https://api.github.com/repos/GrotheFAF/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GrotheFAF/client/merges","archive_url":"https://api.github.com/repos/GrotheFAF/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GrotheFAF/client/downloads","issues_url":"https://api.github.com/repos/GrotheFAF/client/issues{/number}","pulls_url":"https://api.github.com/repos/GrotheFAF/client/pulls{/number}","milestones_url":"https://api.github.com/repos/GrotheFAF/client/milestones{/number}","notifications_url":"https://api.github.com/repos/GrotheFAF/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GrotheFAF/client/labels{/name}","releases_url":"https://api.github.com/repos/GrotheFAF/client/releases{/id}","deployments_url":"https://api.github.com/repos/GrotheFAF/client/deployments","created_at":"2016-09-09T04:40:49Z","updated_at":"2016-09-09T04:40:50Z","pushed_at":"2016-11-18T17:49:07Z","git_url":"git://github.com/GrotheFAF/client.git","ssh_url":"git@github.com:GrotheFAF/client.git","clone_url":"https://github.com/GrotheFAF/client.git","svn_url":"https://github.com/GrotheFAF/client","homepage":"","size":11654,"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":"develop"}},"base":{"label":"FAForever:develop","ref":"develop","sha":"61ab484b186db547830e020397f928c96eb354e9","user":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars.githubusercontent.com/u/8887184?v=3","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"repo":{"id":24400684,"name":"client","full_name":"FAForever/client","owner":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars.githubusercontent.com/u/8887184?v=3","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FAForever/client","description":"FAF Python Client","fork":false,"url":"https://api.github.com/repos/FAForever/client","forks_url":"https://api.github.com/repos/FAForever/client/forks","keys_url":"https://api.github.com/repos/FAForever/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FAForever/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FAForever/client/teams","hooks_url":"https://api.github.com/repos/FAForever/client/hooks","issue_events_url":"https://api.github.com/repos/FAForever/client/issues/events{/number}","events_url":"https://api.github.com/repos/FAForever/client/events","assignees_url":"https://api.github.com/repos/FAForever/client/assignees{/user}","branches_url":"https://api.github.com/repos/FAForever/client/branches{/branch}","tags_url":"https://api.github.com/repos/FAForever/client/tags","blobs_url":"https://api.github.com/repos/FAForever/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FAForever/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FAForever/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/FAForever/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FAForever/client/statuses/{sha}","languages_url":"https://api.github.com/repos/FAForever/client/languages","stargazers_url":"https://api.github.com/repos/FAForever/client/stargazers","contributors_url":"https://api.github.com/repos/FAForever/client/contributors","subscribers_url":"https://api.github.com/repos/FAForever/client/subscribers","subscription_url":"https://api.github.com/repos/FAForever/client/subscription","commits_url":"https://api.github.com/repos/FAForever/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/FAForever/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/FAForever/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/FAForever/client/issues/comments{/number}","contents_url":"https://api.github.com/repos/FAForever/client/contents/{+path}","compare_url":"https://api.github.com/repos/FAForever/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FAForever/client/merges","archive_url":"https://api.github.com/repos/FAForever/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FAForever/client/downloads","issues_url":"https://api.github.com/repos/FAForever/client/issues{/number}","pulls_url":"https://api.github.com/repos/FAForever/client/pulls{/number}","milestones_url":"https://api.github.com/repos/FAForever/client/milestones{/number}","notifications_url":"https://api.github.com/repos/FAForever/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FAForever/client/labels{/name}","releases_url":"https://api.github.com/repos/FAForever/client/releases{/id}","deployments_url":"https://api.github.com/repos/FAForever/client/deployments","created_at":"2014-09-24T04:25:57Z","updated_at":"2016-11-06T11:12:33Z","pushed_at":"2016-11-19T09:41:52Z","git_url":"git://github.com/FAForever/client.git","ssh_url":"git@github.com:FAForever/client.git","clone_url":"https://github.com/FAForever/client.git","svn_url":"https://github.com/FAForever/client","homepage":"","size":14327,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":124,"forks":78,"open_issues":124,"watchers":34,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/FAForever/client/pulls/497"},"html":{"href":"https://github.com/FAForever/client/pull/497"},"issue":{"href":"https://api.github.com/repos/FAForever/client/issues/497"},"comments":{"href":"https://api.github.com/repos/FAForever/client/issues/497/comments"},"review_comments":{"href":"https://api.github.com/repos/FAForever/client/pulls/497/comments"},"review_comment":{"href":"https://api.github.com/repos/FAForever/client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FAForever/client/pulls/497/commits"},"statuses":{"href":"https://api.github.com/repos/FAForever/client/statuses/39343ac076713800e1565784c6b7822eceae43ac"}}}}
{"actor":{"display_login":"GrotheFAF"}}