psistorm/alfredapp — pull request #10 by danieldiekmeier (2014-09-09 09:32:42+00:00)
Title: Fix for changes in how Leo works

Yesterday I noticed that the workflow stopped working, today I investigated why. It seems like Leo is now loading the results dynamically, and not as part of the ordinary page.

After a little poking around in their source code, I found the URL of their XML API that is queried:

`http://dict.leo.org/dictQuery/m-vocab/ende/query.xml?tolerMode=nof&lp=ende&lang=de&rmWords=off&directN=0&rmSearch=on&search=QUERY&searchLoc=0&resultOrder=basic&multiwordShowSingle=on§LenMax=16`

I'm not really really familiar with XML parsing in PHP, but it seems to work now.

(I also updated the screenshot.)