Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by xuso

  1. Strike Workflow for Alfred





    For those who doesn't know Strike, is a torrent search engine with a clean and nice interface and a complete API (used in this workflow, of course)


    I've made a workflow that allows you to search torrents inside Alfred, showing the size of the file, the seeds and leechers, and the category. For start downloading with your default torrents client, just press enter.







    I hope you like it :)




    * Thanks to the developers of qWorkflow library and JSON Helper, that saved me a lot of time.


  2. It would be nice to allow search between the last recent entered commands, like 'Ctrl+R' in a shell, for example.


    Now you can navigate with the up arrow but you have to go though all the history until you find it, and also you cannot go forward if you miss the one you were looking for, you have to start over. Or maybe I'm doing it wrong and there is another way already, who knows :)


    Thank you.

  3. fa_logo.png


    First of all, probably many of you will not know what is Filmaffinity. It is a really big database of movies and series like IMDB, but in Spanish. ^_^

    Then, I would like to explain that this is not made with a public API of the web, it is just made with curl, xpath and posts. Yeah, sucks, but it's the only way.

    Let's go with the workflow:


    How it likes

    Movie Layout



    Search Layout




    What we can do?



    Of course, the plot is not only what you see above. You can see all the plot just like this:




    Just a little configuration

    Well, obviously, I can't access your rating and vote for you if you don't log in with your credentials. You just need to edit the config.txt file:



    The other thing is that you need to add yourself as a friend of Filmaffinity because the web loads asyncronously your rating info but synchronously your friends ratings, so if you appears between your friends it is easier to retrieve your ratings. And that's because I need also the FA_Nick to discard you from the 'Friends ratings' section and take your rating.


    Of course, if you don't want to set up your user and password, you can use as well all the other features of the workflow.


    I hope anyone on the forum to be a Filmaffinity user :P . Anyway I made it for me, and I wanted to share it, so here it goes:


    Download (v1.0).



    P.S.: If is there any English user of the web, it's always possible to make an english version. ;)

  4. It does work for workflows as well, but not every developer is using it. For example, if it is my Google Translate that you are using, then all UIDs are the same for each language, thus preventing Alfred from learning an order (i think). If is matters to you, go to the workflow, look for uid="translation" and change that for something specific for each language (ex: uid="translation_en").


    Hmm... I don't think so. You mean the results of the workflow, I mean the trigger of the workflow.

  5. You could use this function, couldn't you? http://php.net/manual/pt_BR/function.sleep.php


    This works fine, not the cleanest way, but meanwhile...


    Everyone's been asking for this. There's no clean way to simulate it in a script either, since there's no state stored across invocations for the same Alfred window. Until it gets added the best hacks are going off of length or other trigger. In your above example you might wait until you see a valid ending, e.g., 'mx'.


    The right thing is not to do the wait in the script, but before running. Something like a timer, cancelled and delayed 100ms more on every keyboard type.

  • Create New...