diff options
author | tv <tv@krebsco.de> | 2016-11-26 00:06:16 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-11-26 00:06:16 +0100 |
commit | feeb29434d4432e4c531041dccac2761c185ab59 (patch) | |
tree | 347bd90808c7be1d464a70a3a7b7006cafab5a39 | |
parent | da3128b3d91cd29485b19a1ce2fd361708507600 (diff) |
langlang -> lp
-rwxr-xr-x | dic | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -11,17 +11,16 @@ main() { *) usage; exit 23;; esac - # all three are used by GET - search="$1" - langlang="${2-en}de" - lang="de" + search=$1 + lang=de + lp=${2-en}de GET | simplify | tac } GET() { curl -sS -b 'LEOABTEST=T; browser=webkit%3B5%3Bajax' \ - "https://dict.leo.org/dictQuery/m-vocab/$langlang/query.xml?tolerMode=nof&lp=$langlang&lang=$lang&rmWords=off&rmSearch=on&search=$search&searchLoc=0&resultOrder=basic&multiwordShowSingle=on" + "https://dict.leo.org/dictQuery/m-vocab/$lp/query.xml?tolerMode=nof&lp=$lp&lang=$lang&rmWords=off&rmSearch=on&search=$search&searchLoc=0&resultOrder=basic&multiwordShowSingle=on" } simplify() { |