alfred.py: use gzip (requires alfred-json v0.2)

legacy
Nils Schneider 2014-07-05 20:23:06 +02:00
parent 9f546be0c7
commit 263dd4ceff
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class alfred:
self.request_data_type = request_data_type
def aliases(self):
output = subprocess.check_output(["alfred-json","-r",str(self.request_data_type),"-f","json"])
output = subprocess.check_output(["alfred-json","-r",str(self.request_data_type),"-f","json","-z"])
alfred_data = json.loads(output.decode("utf-8"))
alias = {}
for mac,node in alfred_data.items():