SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-23 22:02:21

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

shell-fm - a terminal app to play last.fm

hello,
i'd like to draw peoples attention to shell-fm once more.
it's in the repos but when compiled from git it works better -
it's the one thing that makes me listen to last.fm - i don't know why, i just don't like to listen to music from my browser and this little cli app is just so neat and cool.
tZ2ZkZw
tZ2ZkaQ

it would be great to keep this little app alive...

it works smoothly, but some small improvements would be good... like remembering the volume level or being able to start shell-fm with less than 100% volume...

oh well, please happy hackers help!

i posted some scripts here to integrate shell-fm into your desktop:
http://crunchbang.org/forums/viewtopic. … 30#p276130
http://crunchbang.org/forums/viewtopic. … 27#p276227

Last edited by ohnonot (2012-12-02 21:56:59)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-11-25 18:11:08

antiv0rtex
#! Die Hard
From: Earth
Registered: 2012-10-05
Posts: 574

Re: shell-fm - a terminal app to play last.fm

I am a lover of last.fm's artist radio function, so I will certainly keep this application in mind. Thank you very much for highlighting it! smile

Last edited by antiv0rtex (2012-11-25 18:11:55)

Offline

#3 2012-11-26 00:32:06

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,086

Re: shell-fm - a terminal app to play last.fm

@ohnonot:  Did you get "Chunked!" errors from the version in the repos?  Is this one of teh fixes in the current git version?


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#4 2012-11-26 01:14:27

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: shell-fm - a terminal app to play last.fm

^ I am getting the same errors

I also cannot build from the git install with errors there too.

This is my build machine, with every build tool under the stars available and I still could not solve the issues from with the git build process.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#5 2012-11-26 19:30:12

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

thanks for answering.
@pvsage: yes, and yes. but there have been new error messages recently.
@vastone: ??? strange. i had no problems whatsoever on two rather different distros (xubuntu and cb!).

btw, is this the page telling me about most recent changes, and are they always automatically included when i rebuild the app?

i got an email last week saying:

Hello,

We're writing you to let you know that there will soon be a change to Last.fm radio that may affect you. Our stats show that you've listened to radio through an application that uses our old streaming protocol. On 1 December we will deprecate this old protocol, so in some applications radio will no longer work.

If you would like to continue enjoying Last.fm Radio, consider upgrading to a new application or using http://www.last.fm/listen

Thanks,
The Last.fm Team

-...
i really hope someone can look into this.
but it has been working so far.

btw, is it possible to control shell-fm in other ways than through the terminal window? like from the menu? current track displaying in conky?
man shell-fm says something about adressing ports locally and i'm just so noob with these network protocol thingymajigs...

Offline

#6 2012-11-27 23:48:54

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,889

Re: shell-fm - a terminal app to play last.fm

It looks like today was the day Last FM changed there streaming protocol. I use Vagalume on Debian and aLastFM Player (no longer maintained) on Android and they both went kaput today. Boo.

Vagalume, a Last FM GUI client, may get a fix as it's in the Debian repos and I think it's still maintained.

Offline

#7 2012-11-28 08:27:13

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

yea, same here. shell-fm just exits...
has this change been announced, i mean did coders have time to change their software, or do we just have to wait?
right now i would love to be able to listen to last.fm in any way except from my browser, graphical or cli...

apart from that, what other services are out there?
i'm just trying out libre.fm - they have only music that is freely distributable, yes?
trying out zomg (terminal app to listen to libre.fm and supposedly also last.fm), doesn't seem to work.
cry

Last edited by ohnonot (2012-11-28 08:27:52)

Offline

#8 2012-11-28 15:56:47

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,086

Re: shell-fm - a terminal app to play last.fm

Odd...the version of shell-fm from the Stable repo still works.  It still chunks, but at least it still works.


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#9 2012-11-28 16:47:05

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

pvsage wrote:

Odd...the version of shell-fm from the Stable repo still works.  It still chunks, but at least it still works.

confirmed. it says

debug: chunked

but it also says

couldn't scrobble tracks. 

- question is: is it just saying that or is it really not scrobbling.
i just logged into last.fm website - i can see the song i loved 5min ago, but where's the info about scrobbling???
is it under .../tracks?

anyways, this is good news.

but then i'd like to get rid of the terminal window and control shell-fm with commands.
could someone please, please walk me through this:

 bind = host
              This  specifies the network interface you want shell-fm to bind to.  host should be the host name or an IP address of host shell-
              fm is running on.  shell-fm will open a port (see the port option below) on the specified interface which you can connect  to  to
              control  shell-fm  remotely (or from local scripts, see key0x??  above). Check the NETWORK INTERFACE COMMANDS section below for a
              list of known commands.  NOTE: The network interface has no user authentication, so anyone with access to your  network/host  can
              control shell-fm. Use it only if you really need to control shell-fm over a network. Otherwise use the UNIX socket interface (see
              below).

       unix = path
              If this is set to a proper path, on that path a UNIX socket will be created for local "remote"  control.  This  socket  interface
              takes the same commands as the TCP socket interface (see above).

       port = port-number
              With this option you can change the port shell-fm will listen on (if bind is specified). Default is 54311.

- taken from man shell-fm.

Last edited by ohnonot (2012-11-28 16:47:46)

Offline

#10 2012-11-28 18:25:55

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,889

Re: shell-fm - a terminal app to play last.fm

I spoke too soon, Vagalume is working like a peach today and aLastFmPlayer is working as well as it can. Crossing my fingers that they've transitioned and it's not effecting those apps and that it's not that the site was down for something unrelated and I'll lose these apps after the 1st.

Offline

#11 2012-11-28 19:00:08

kowloonboy
#! Junkie
Registered: 2011-10-13
Posts: 443

Re: shell-fm - a terminal app to play last.fm

Thanks for posting this. I never would have know about it.


"To me, the extraordinary aspect of martial arts lies in its simplicity. The easy way is also the right way, and martial arts is nothing at all special; the closer to the true way of martial arts, the less wastage of expression there is." - Bruce Lee

Offline

#12 2012-11-28 19:33:07

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

so now both versions are working again.
roll roll roll
well i guess i should just be happy. sorry if i startled other people than myself.

Last edited by ohnonot (2012-11-28 19:34:30)

Offline

#13 2012-12-02 05:06:21

arman
Member
Registered: 2011-12-08
Posts: 27

Re: shell-fm - a terminal app to play last.fm

Good to hear it still works!
Thanks for this post, ohnonot!

Offline

#14 2012-12-02 12:28:17

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

you're welcome.
angel
i made some cool adjustments to my shell-fm.rc; combined with conky they put song info & cover art on my desktop, plus keeping up a history file.

here's my complete shell-fm.rc:

username = <you>
password = xxxxxx
default-radio = lastfm://user/<you>/recommended
delay-change = 1
# download = /home/<you>/music/shellfm/%a;%t;%l;%d.mp3
# extern = mplayer -really-quiet -
title-format = %t by %a
preview-format = %t by %a
volume-update = Vol. %v

# unix = /home/<you>/.shell-fm/unix ????

np-file = /home/<you>/.shell-fm/info/nowtrk
np-file-format = %s %t by %a (%l) %f (%V)

# extern = tee "/home/<you>/music/shellfm/%a;%t;%l;%d.mp3" | madplay -Q -a -2 -
# downloads all - also non-free tracks

np-cmd = cd /home/<you>/.shell-fm/info/ ; echo %I > get ; echo %t > trkinf0 ; echo %a > trkinf1 ; echo %l > trkinf2 ; echo %s > trkinf3 ; ./np.sh > /dev/zero ;
# all this to be executed after every track
# ./update_id3.sh; this only if download=... is enabled.

stream-timeout = 10
# no-rtp = 1
discovery = 1
gap = 0
minimum = 75
expiry = 864000

# key0x4C = /usr/bin/python ~/.shell-fm/scripts/lyrics.py %a %t
# key "L" triggers...

t-color = 1;34
a-color = 1;34
l-color = 1;34
v-color = 1;34
f-color = 1;34
# V-color = 0;33
b-color = 1;34
A-color = 1;34
S-color = 1;34

# screen-format = shell-fm
# term-format = shell-fm: %a: %t

and the relevant part of my .conkyrc:

${if_running shell-fm}${if_existing /home/<you>/.shell-fm/info/icon.png}${image /home/<you>/.shell-fm/info/icon.png -p 0,335 -s 170x170 -n}
${voffset 170}$endif
${if_existing /home/<you>/.shell-fm/info/trkinf1}$alignr${tail /home/<you>/.shell-fm/info/trkinf1 1,1}:$endif
${if_existing /home/<you>/.shell-fm/info/trkinf0}${voffset 4}$alignr${tail /home/<you>/.shell-fm/info/trkinf0 1,1}$endif
${voffset 9}${if_existing /home/<you>/.shell-fm/info/trkinf2}$alignr(${tail /home/<you>/.shell-fm/info/trkinf2 1,1})$endif
${voffset 7}${if_existing /home/<you>/.shell-fm/info/trkinf3}$alignr Radio:
$alignr${tail /home/<you>/.shell-fm/info/trkinf3 1,1}$endif$endif

replace <you> with your username!
then, untar this to your .shell-fm folder. (i haven't tried this upload service yet. i hope it's ok. please post if it isn't.)
should be working now. if shell-fm is already running, press Shift-C to reload config.

sadly, i still could not find a way to control shell-fm via socket or ip address
cry

Offline

#15 2012-12-02 18:40:24

user77
#! CrunchBanger
From: Dirty Denver
Registered: 2012-01-20
Posts: 154

Re: shell-fm - a terminal app to play last.fm

Got this all setup today, really cool app. Thanks for posting this.

Offline

#16 2012-12-02 21:52:55

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

thanks!

2 more additions:
- toggle shell-fm on/off with a shell script (that can be called from the menu)
- and start it straight into the system tray with alltray.

#!/bin/bash

if (pidof -x shell-fm) ; then 

killall shell-fm
rm -f /home/<you>/.shell-fm/info/icon.*
rm -f /home/<you>/.shell-fm/info/trkinf*
rm -f /home/<you>/.shell-fm/info/get ; 

else 

rm -f /home/<you>/.shell-fm/info/icon.*
rm -f /home/<you>/.shell-fm/info/trkinf*
rm -f /home/<you>/.shell-fm/info/get

alltray -st -stask -i ~/.shell-fm/lastfm2.png urxvt -uc -geometry 47x13+10+400 -e shell-fm

fi

--- "killall shell-fm" is not very elegant.
still waiting for some help with setting up that unix socket--- pretty please?

Last edited by ohnonot (2012-12-02 21:58:48)

Offline

#17 2012-12-05 20:58:29

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

...it seems that this time it really doesn't work anymore.
starting shell-fm, i get this error:

Invalid HTTP: HTTP/1.0 403 Forbidden
  from: http://ws.audioscrobbler.com/radio/adju … 2Fpersonal

(i replaced the session code and my username)
- and i've been getting this error for 3 days now.
vagalume starts playing my recommended radio but i can't change stations.
does anybody know how the new protocol goes?
if i could only set my default radio in shell-fm.rc with the new protocol, i might even dare to take a look at the source code...

has anybody heard any news/rumours concerning last.fm and open source coding?

edit: i got the new shell-fm from github. some changes have been made a couple of days ago.
this time, after first startup, it tells me to

Please open http://www.last.fm/api/auth/?token=xxxx … xxxxxxxxxx in your browser to autorize shell-fm.

however, this time last.fm itself tells me that something does not work at the moment. in 10 languages, but no further info...
after that i can log in with shell-fm but not listen.

it says

Sorry, couldn't set station to user/daniel227/recommended. The Webservices API key supplied does not have permission to stream / create new radio trials.

everything works nicely when i use the website itself to listen.

Last edited by ohnonot (2012-12-08 17:08:54)

Offline

#18 2012-12-08 18:56:19

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

it seems that this time it's over for real.
just found this -

unless someone has ideas how to get around that?
pretending to be a web browser?

get better authentication codes from somewhere else?

Offline

#19 2012-12-08 20:23:42

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,086

Re: shell-fm - a terminal app to play last.fm

I think this might be related to ongoing efforts of the labels to get money (allegedly to pay the artists' residuals, but we all know where most of the money goes).  D@mn RIAA...that's one of the reasons I mostly listen to indie artists now.


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#20 2012-12-09 06:46:35

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

i found this last night.
it explains a lot of the recent, seemingly random behaviour.
...it seems a solution is available.
working on it.

Last edited by ohnonot (2012-12-09 06:48:00)

Offline

#21 2012-12-09 23:08:23

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,423

Re: shell-fm - a terminal app to play last.fm

hhh wrote:

I spoke too soon, Vagalume is working like a peach today and aLastFmPlayer is working as well as it can.

In my case Vagalume stopped and still does not work. And I thought it uses already the newer API. The regular but not so nice Lastfm player works. Should try it again.

Offline

#22 2012-12-12 16:12:43

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

a few days and many unanswered forumposts later i come to this conclusion:
without a subscription, nothing doing anymore. not even through my web browser.
for some weird reason, vagalume still plays my default radio station, and scrobbles.

Offline

#23 2012-12-12 16:42:20

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,086

Re: shell-fm - a terminal app to play last.fm

Even with a subscription, nothing doing through shell-fm...I keep getting 403 forbidden messages. hmm


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#24 2012-12-12 19:32:39

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 974
Website

Re: shell-fm - a terminal app to play last.fm

i wrote a question to last.fm support.
they answered promptly, which is a good thing.
but they told me that even if i would get a subscription, radio streaming will become unavailable in my country from jan, 15th onwards.
i guess they mean streaming through an app instead of a browser?

this is starting to feel like discrimination: only credit card owners who use the newest mainstream systems and are willing to give up their privacy are allowed to use last.fm, evenif they pay for it. wtf?
and why is it different in finland than in germany or uk or us of friggin a? i mean, it's not like piratebay.

ps: vagalume also gave up today. it says "no more content to play" but the weird thing is, it also says that about my librefm account.

cry

Last edited by ohnonot (2012-12-13 07:28:05)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo