fbarros Posted September 13, 2013 Share Posted September 13, 2013 (edited) This workflow was created to easily enable the user to perform several actions with the last.fm interface without needing to access the web interface or the desktop application: only with Alfred! After some time using Alfred I decided to create a workflow for last.fm, since I am a heavy user and there was no workflow. This workflow allows users to love, ban, tag and untag the track currently playing in itunes, get information about artists, events, etc... Please keep in mind that this is my first shot developing a workflow. Any suggestions, features you wanted implemented, please list them! I'll do what I can to further develop the workflow. To get started, and to use all the features you have to setup Alfred.fm. You can do this by calling: alfredfm <lastfm_username>. It will open a browser tab and you have to click ok. After this step a notification will say if it was successful or not. If it was successful, you can now use all the methods, even those that need you to be authenticated. Screenshot Alfred.fm GitHub Repo Edited October 1, 2013 by fbarros arsenty and miketheburrito 2 Link to comment
hzlzh Posted September 15, 2013 Share Posted September 15, 2013 You can share your work on the Workflow List site below. Link to comment
Julien Posted September 15, 2013 Share Posted September 15, 2013 Hi, Thanks for your work. I'm also an heavy user of lastfm. I downloaded your workflow, installed it, typed alfredfm MyUsername but nothing happened. no browser opening or tab ... Any idea ? Do I have to download other resources ? Thanks Link to comment
jeffbyrnes Posted September 16, 2013 Share Posted September 16, 2013 I, too, downloaded it, ran the `alfredfm <lastfm_username>` command, but no browser tab/window opened. Link to comment
fbarros Posted September 16, 2013 Author Share Posted September 16, 2013 I think it may be because i'm using OS X Mavericks and the ruby version is 2.0.0 while previous OS X still have ruby 1.8.7. I'll look into it as soon as possible Link to comment
shadylane Posted September 19, 2013 Share Posted September 19, 2013 I think it may be because i'm using OS X Mavericks and the ruby version is 2.0.0 while previous OS X still have ruby 1.8.7. I'll look into it as soon as possible Thanks! I'm having the same issue - no browser window opens when I try to do the setup (OS X 10.8.5). Your workflow looks awesome, though, can't wait to try it Link to comment
fbarros Posted September 22, 2013 Author Share Posted September 22, 2013 Thanks! I'm having the same issue - no browser window opens when I try to do the setup (OS X 10.8.5). Your workflow looks awesome, though, can't wait to try it Sorry not to have any usable workflow for this, but I couldn't work this out yet. I'm doing the best I can to make it compatible with ruby 1.8.7. I hope I manage to solve this during this week. This is the problem of working in beta machines Link to comment
fbarros Posted September 27, 2013 Author Share Posted September 27, 2013 A user (kopischke on github) has developed a version that is usable on ruby 1.8 if you want to use it you can download it from here I started the workflow, but this was only possible to be usable on ruby 1.8 due to the time kopischke spent working on this! Link to comment
kopischke Posted September 27, 2013 Share Posted September 27, 2013 (edited) Yeah, that would have been me . Unluckily, my efforts went at cross purposes with Filipe’s ongoing refactoring of the original extension, so that there are, currently, two incompatible versions: the one Filipe is maintaining, which will only run on Ruby 1.9+, and my fork, which will work with all Ruby versions from 1.8 (standard on current OS X) to 2.0 and contains some fixes and improvements not currently present in Filipe’s. Filipe has kindly announced he will try to merge both versions, but until he gets around to doing that, if you are on OS X < NDA-you-are-not-meant-to-mention-that, my fork might be your best solution. Still, all kudos to him for the development work, it’s an awesome extension, which is why I felt it needed system Ruby compatibility below OS X dont-you-mention-it (I could actually have made it run on my system by forcing it to use my Ruby 2 install, but thought other might appreciate not having to install a separate Ruby version). Edited September 27, 2013 by kopischke Link to comment
alexh2 Posted September 28, 2013 Share Posted September 28, 2013 I tried setting up my last.fm account but it keeps saying 'Authentication failed!'. And this is with Filipe's version. Link to comment
fbarros Posted September 28, 2013 Author Share Posted September 28, 2013 Please download the new version, I updated the link on the first post with the new version. Link to comment
shayonpal Posted September 30, 2013 Share Posted September 30, 2013 Downloaded the workflow from Alfred.fm. Says 'Authentication failed!" Link to comment
shadylane Posted September 30, 2013 Share Posted September 30, 2013 Hi guys! Thank you for your efforts (both of you), but sadly I'm having the same problem shayonpal reported.... Last.fm's authentication page opens, I click the button and a couple of seconds later I get the "authentication failed" notification, every time. I tried reinstalling the workflow, but no luck (this is with kopischke's version, by the way). Whatever the issue might be, I have no problem waiting for Mavericks (assuming Mountain Lion is causing the authentication failure). Link to comment
fbarros Posted October 1, 2013 Author Share Posted October 1, 2013 Hello, I just updated the workflow and the links. Please give it a try and tell me if you still have the problems. If you still can't set it up correctly, send me a private message with the log file in ~/Library/Logs/Alfred-Workflow.log. Best regards, Filipe Link to comment
kopischke Posted October 1, 2013 Share Posted October 1, 2013 The issue is with an incompatibility with Ruby 1.8 when writing the configuration file on authorization. I thought I already fixed that, but I obviously lost the changes somehow and did not catch this when submitting my changes to Filipe. My bad entirely (Filipe can’t test 1.8 compatibility). I also fixed the track actions, which would not work in Ruby 1.8 after Filipe refactored them in the 1.1.1 release. There is an unofficial 1.1.2 release here, and I submitted a pull request to Filipe, so expect the official release to catch up very soon. Link to comment
fbarros Posted October 1, 2013 Author Share Posted October 1, 2013 I already merged and made a new release. Give it a go Link to comment
shadylane Posted October 1, 2013 Share Posted October 1, 2013 SUCCESS!!! Everything's working perfectly now with the latest version, yay! This workflow is absolutely fantastic, seriously, I love it! Thank you both so much, especially for making the workflow run on Mountain Lion - as a huge Last.fm fan I will be using this constantly... Alfred + Last.fm = totally awesome Thanks again guys! kopischke 1 Link to comment
fbarros Posted October 1, 2013 Author Share Posted October 1, 2013 Thank you for the reply. If anyone has some requests please open an issue on github and I will try to put it working. For now I am relying on kopischke to add ruby 1.8 compatibility because I don't have it on my system. Link to comment
kopischke Posted October 1, 2013 Share Posted October 1, 2013 (edited) You heard the man: do open issues on GitHub if anything is amiss. I’m following the repo and will try to pick up anything that looks like it is Ruby 1.8 related pronto. To help me do that, please do not forget to include your system stats when posting issues (i.e. Running Alfred 2.0.8 (212) on OS X 10.8.5, German locale). And thanks to Filipe for his terrific work on this! Edited October 1, 2013 by kopischke Link to comment
fbarros Posted November 22, 2013 Author Share Posted November 22, 2013 I just updated the workflow with a bug fix and a new display: There was a problem with the album cover when accessing the track information, and i also updated the icon of the indicator of a loved track to have a different display. You can get it from here: https://github.com/filipebarros/alfredfm/releases Link to comment
bk161124 Posted January 15, 2014 Share Posted January 15, 2014 Hi! Does anybody know how to change the media player in which the workflow searches for a currently playing song to a player other than iTunes (for instance to Swinsian or Vox)? This workflow looks fantastic, but if you could use any player it would be even more awesome! Thank you! Link to comment
fbarros Posted January 21, 2014 Author Share Posted January 21, 2014 Hi! Does anybody know how to change the media player in which the workflow searches for a currently playing song to a player other than iTunes (for instance to Swinsian or Vox)? This workflow looks fantastic, but if you could use any player it would be even more awesome! Thank you! This feature would depend on the API's these media players have. I will see if there's any method to check the track info and will say something! Link to comment
bk161124 Posted January 21, 2014 Share Posted January 21, 2014 Thanks for your reply =) Swinsian is Applescript-ready if that helps? -> http://goo.gl/T2XcWo Link to comment
fbarros Posted January 21, 2014 Author Share Posted January 21, 2014 I have released a new version on github with Swinsian support. I will try to check tomorrow for other apps support. If there's any problem please report it on github since it's easier to track than on a forum Link to comment
bk161124 Posted January 24, 2014 Share Posted January 24, 2014 Wow!! It works just perfect =) You´re my hero! Thank you so much, this workflow really makes interacting with alst.fm and swinsian a breeze! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now