Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cxstar committed Jan 20, 2017
1 parent 11659c5 commit 8e0d2c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iciba/jsfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
word = sys.argv[1]

def getTransResult():
url = api_url+"?w="+soword+"&type=json&key="+app_key
url = api_url+"?w="+word+"&type=json&key="+app_key
res = web.get(url)
return res.json()

Expand All @@ -23,7 +23,6 @@ def genAlfred(data):
title=u"am:[" + data['symbols'][0]['ph_am'] + "] ,en:["+data['symbols'][0]['ph_en']+"]",
subtitle=u"phonic for " + word + "[by star]",
arg=u"am:[" + data['symbols'][0]['ph_am'] + "] ,en:["+data['symbols'][0]['ph_en']+"]==="+data['symbols'][0]['ph_am_mp3'],
# arg=u"am:[" + data['symbols'][0]['ph_am'] + "] ,en:["+data['symbols'][0]['ph_en']+"]",
valid=True,
icon=ICON_DEFAULT)
#mean
Expand Down

0 comments on commit 8e0d2c5

Please sign in to comment.