Comments on: Now playing for irssi using Last.fm https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/ Wed, 04 Mar 2015 15:44:10 +0000 hourly 1 https://wordpress.org/?v=5.4.1 By: tobbez https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-15181 Tue, 16 Sep 2008 15:42:56 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-15181 Instead of using my script (or any modified version of it) I would recommend to use http://soy.se/code/lastfm.pl instead – it has many more features, and uses a better mechanism to fetch the data (Last.fm API instead of screen scraping).

]]>
By: jamo https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-15180 Tue, 16 Sep 2008 15:18:31 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-15180 here is my tweaked version. shows artist and track. so if not playing right now, shows the last one played.

creds to the original creator :)

http://slug.dy.fi/npScriptLastFm.pl

]]>
By: Salminen https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-7630 Tue, 01 Jan 2008 19:31:05 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-7630 @Possum

My computer says “Add this track to your playlist” to the channel if I use “eq” but with “==” it says what I’m playing and when not playing it echos me “Nothing playing!”.

So why not use somethind “bad” if it works when the original doesn’t?

]]>
By: Possum https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-7528 Tue, 25 Dec 2007 06:36:51 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-7528 @Salminen

Ummm….

Using == is BAD for strings. Comparing any two strings with == will return true. If you don’t believe me, try perl -e 'print "true\n" if ("Add this track to your playlist" == "hi")'

That said, if you have the same script I downloaded, changing it to == should NEVER work, but will only print “Nothing playing!” every time you use the command.

]]>
By: Salminen https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-7493 Thu, 20 Dec 2007 14:53:07 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-7493 “Add this track to your playlist” part doesn’t work with “eq” on my computer, changed it to “==” and now it works.
I don’t know if this feature has something to do with different perl versions.

]]>
By: tobbez https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-7390 Mon, 10 Dec 2007 19:41:23 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-7390 The changes you made does more than speeding it up, you change the functionality as well. The command you provided ( curl –silent http://ws.audioscrobbler.com/1.0/user/$lastfmuser/recenttracks.txt | head -n1 | sed ‘s,^………..,,;’ | recode utf-8..iso-8859-1 ) fetches the last song you’ve finished listening to, not the one you’re currently listening to.

]]>
By: rene https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-7389 Mon, 10 Dec 2007 14:42:08 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-7389 thx for this script!!!

i took a few changes, for me its much faster.
http://nopaste.info/2d65ee835c.html

]]>
By: Salminen https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-6998 Thu, 15 Nov 2007 17:30:20 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-6998 So wordpress doesn’t like quatation marks?
http://huono.info/npScriptLastFm.pl <<that is working on my server, and there you can see what I was tryin to say on my previous post.

]]>
By: Salminen https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-6997 Thu, 15 Nov 2007 17:23:40 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-6997 Nice script indeed.

First I had “not enough parameters” errors, but I got this working on my server by changing
grep -A 1 “”
to
grep -A 1 ”

]]>
By: joff https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/comment-page-1/#comment-6351 Tue, 16 Oct 2007 02:31:37 +0000 https://blog.ryara.net/2007/08/20/now-playing-for-irssi-using-lastfm/#comment-6351 Yeah, I get the same “not enough parameters” problem as Ozzee

]]>