{"action":"created","comment":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/212841122","pull_request_review_id":149552764,"id":212841122,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjg0MTEyMg==","diff_hunk":"@@ -0,0 +1,63 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Display status of MEGA sync.\n+\n+Configuration parameters:\n+    cache_timeout: refresh interval for this module (default 10)\n+    format: display format for this module (default \"MEGA: {SyncState_0}\")\n+\n+Format placeholders:\n+    <column>_<ID> where <column> and <ID> are returned by 'mega-sync' command.","path":"py3status/modules/mega_sync.py","position":null,"original_position":10,"commit_id":"4d015f6ba0f2448b7d9782f870d3c7eda870bdb8","original_commit_id":"c9fe42f3b564deab81fb7fed44260448f5759f7d","user":{"login":"maximbaz","id":1177900,"node_id":"MDQ6VXNlcjExNzc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1177900?v=4","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"body":"Done now. I have one issues though, with this negative equals format doesn't seem to work...\r\n\r\nWhat am I missing @lasers?\r\n\r\n```\r\nformat_sync = \"[\\?!if=SyncState=Synced {SyncState}]\"\r\n```\r\n\r\nI tried this:\r\n\r\n```\r\nformat_sync = \"[\\?if=ID=0 {SyncState}]\"\r\n```\r\n\r\nAnd it correctly shows me one of two entries, but if I put `!` before `if`, then I see two entries. Why?\r\n\r\n```\r\nformat_sync = \"[\\?!if=ID=0 {SyncState}]\"\r\n```\r\n","created_at":"2018-08-26T22:37:34Z","updated_at":"2018-08-26T22:37:34Z","html_url":"https://github.com/ultrabug/py3status/pull/1458#discussion_r212841122","pull_request_url":"https://api.github.com/repos/ultrabug/py3status/pulls/1458","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/212841122"},"html":{"href":"https://github.com/ultrabug/py3status/pull/1458#discussion_r212841122"},"pull_request":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/1458"}},"in_reply_to_id":212837312},"pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/1458","id":210961923,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTYxOTIz","html_url":"https://github.com/ultrabug/py3status/pull/1458","diff_url":"https://github.com/ultrabug/py3status/pull/1458.diff","patch_url":"https://github.com/ultrabug/py3status/pull/1458.patch","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/1458","number":1458,"state":"open","locked":false,"title":"New module: MEGA sync","user":{"login":"maximbaz","id":1177900,"node_id":"MDQ6VXNlcjExNzc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1177900?v=4","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"body":"Because Dropbox decided to abandon Linux users in November, it's time to migrate somewhere. I chose MEGA 😛 \r\n\r\nMEGA allows configuring sync for multiple folders, here's the output of `mega-sync`:\r\n\r\n```\r\n❯ mega-sync \r\nID LOCALPATH      REMOTEPATH     ActState   SyncState     SIZE  FILES   DIRS\r\n 0 ~/MEGA         /              Active     Synced     4.45 GB   3275    678 \r\n```\r\n\r\nWhat this module does is that it parses every line and creates a bunch of format placeholders for every line, such as `LOCALPATH_0`, `SyncState_0`, etc.\r\n\r\n\r\nI decided not to do what Dropbox module does in terms of `status_*` configs, instead just parse the fields and let people use formatter. Personally, I want to hide the module when everything is synced, so I included the commit that adds this functionality to formatter.\r\n\r\n```\r\nformat = \"[\\?if=SyncState_0!~Synced&color=degraded MEGA: {SyncState_0}]\"\r\n```","created_at":"2018-08-26T17:32:47Z","updated_at":"2018-08-26T22:37:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1627ff7a040a0593254251bc739fbfbdd457908","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":419412051,"node_id":"MDU6TGFiZWw0MTk0MTIwNTE=","url":"https://api.github.com/repos/ultrabug/py3status/labels/new%20module%20:sparkles:","name":"new module :sparkles:","color":"c920a7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ultrabug/py3status/pulls/1458/commits","review_comments_url":"https://api.github.com/repos/ultrabug/py3status/pulls/1458/comments","review_comment_url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/1458/comments","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/4d015f6ba0f2448b7d9782f870d3c7eda870bdb8","head":{"label":"maximbaz:new-module-mega_sync","ref":"new-module-mega_sync","sha":"4d015f6ba0f2448b7d9782f870d3c7eda870bdb8","user":{"login":"maximbaz","id":1177900,"node_id":"MDQ6VXNlcjExNzc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1177900?v=4","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"repo":{"id":44889392,"node_id":"MDEwOlJlcG9zaXRvcnk0NDg4OTM5Mg==","name":"py3status","full_name":"maximbaz/py3status","owner":{"login":"maximbaz","id":1177900,"node_id":"MDQ6VXNlcjExNzc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1177900?v=4","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximbaz/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":true,"url":"https://api.github.com/repos/maximbaz/py3status","forks_url":"https://api.github.com/repos/maximbaz/py3status/forks","keys_url":"https://api.github.com/repos/maximbaz/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximbaz/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximbaz/py3status/teams","hooks_url":"https://api.github.com/repos/maximbaz/py3status/hooks","issue_events_url":"https://api.github.com/repos/maximbaz/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/maximbaz/py3status/events","assignees_url":"https://api.github.com/repos/maximbaz/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/maximbaz/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/maximbaz/py3status/tags","blobs_url":"https://api.github.com/repos/maximbaz/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximbaz/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximbaz/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximbaz/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximbaz/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/maximbaz/py3status/languages","stargazers_url":"https://api.github.com/repos/maximbaz/py3status/stargazers","contributors_url":"https://api.github.com/repos/maximbaz/py3status/contributors","subscribers_url":"https://api.github.com/repos/maximbaz/py3status/subscribers","subscription_url":"https://api.github.com/repos/maximbaz/py3status/subscription","commits_url":"https://api.github.com/repos/maximbaz/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximbaz/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximbaz/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximbaz/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximbaz/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/maximbaz/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximbaz/py3status/merges","archive_url":"https://api.github.com/repos/maximbaz/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximbaz/py3status/downloads","issues_url":"https://api.github.com/repos/maximbaz/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/maximbaz/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/maximbaz/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/maximbaz/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximbaz/py3status/labels{/name}","releases_url":"https://api.github.com/repos/maximbaz/py3status/releases{/id}","deployments_url":"https://api.github.com/repos/maximbaz/py3status/deployments","created_at":"2015-10-24T23:43:23Z","updated_at":"2015-10-24T23:43:25Z","pushed_at":"2018-08-26T22:34:47Z","git_url":"git://github.com/maximbaz/py3status.git","ssh_url":"git@github.com:maximbaz/py3status.git","clone_url":"https://github.com/maximbaz/py3status.git","svn_url":"https://github.com/maximbaz/py3status","homepage":"","size":4352,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ultrabug:master","ref":"master","sha":"a6250bf85db6abe8d94b24f6a16b4bfca51e1bc8","user":{"login":"ultrabug","id":474389,"node_id":"MDQ6VXNlcjQ3NDM4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/474389?v=4","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"repo":{"id":8292338,"node_id":"MDEwOlJlcG9zaXRvcnk4MjkyMzM4","name":"py3status","full_name":"ultrabug/py3status","owner":{"login":"ultrabug","id":474389,"node_id":"MDQ6VXNlcjQ3NDM4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/474389?v=4","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ultrabug/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":false,"url":"https://api.github.com/repos/ultrabug/py3status","forks_url":"https://api.github.com/repos/ultrabug/py3status/forks","keys_url":"https://api.github.com/repos/ultrabug/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultrabug/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultrabug/py3status/teams","hooks_url":"https://api.github.com/repos/ultrabug/py3status/hooks","issue_events_url":"https://api.github.com/repos/ultrabug/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/ultrabug/py3status/events","assignees_url":"https://api.github.com/repos/ultrabug/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/ultrabug/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/ultrabug/py3status/tags","blobs_url":"https://api.github.com/repos/ultrabug/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultrabug/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultrabug/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultrabug/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/ultrabug/py3status/languages","stargazers_url":"https://api.github.com/repos/ultrabug/py3status/stargazers","contributors_url":"https://api.github.com/repos/ultrabug/py3status/contributors","subscribers_url":"https://api.github.com/repos/ultrabug/py3status/subscribers","subscription_url":"https://api.github.com/repos/ultrabug/py3status/subscription","commits_url":"https://api.github.com/repos/ultrabug/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultrabug/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultrabug/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultrabug/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultrabug/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/ultrabug/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultrabug/py3status/merges","archive_url":"https://api.github.com/repos/ultrabug/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultrabug/py3status/downloads","issues_url":"https://api.github.com/repos/ultrabug/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/ultrabug/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/ultrabug/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/ultrabug/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultrabug/py3status/labels{/name}","releases_url":"https://api.github.com/repos/ultrabug/py3status/releases{/id}","deployments_url":"https://api.github.com/repos/ultrabug/py3status/deployments","created_at":"2013-02-19T14:59:13Z","updated_at":"2018-08-26T05:57:24Z","pushed_at":"2018-08-26T22:34:48Z","git_url":"git://github.com/ultrabug/py3status.git","ssh_url":"git@github.com:ultrabug/py3status.git","clone_url":"https://github.com/ultrabug/py3status.git","svn_url":"https://github.com/ultrabug/py3status","homepage":"https://py3status.readthedocs.io/","size":4348,"stargazers_count":539,"watchers_count":539,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":185,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":185,"open_issues":74,"watchers":539,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/1458"},"html":{"href":"https://github.com/ultrabug/py3status/pull/1458"},"issue":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/1458"},"comments":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/1458/comments"},"review_comments":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/1458/comments"},"review_comment":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/1458/commits"},"statuses":{"href":"https://api.github.com/repos/ultrabug/py3status/statuses/4d015f6ba0f2448b7d9782f870d3c7eda870bdb8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"maximbaz"}}