Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
EDIT: since the 1.4.1 version, Amarok can read last.fm radio without any script. Get Amarok 1.4.1 at http://amarok.kde.org/ !

LastamaroK allows to play last.fm radios ( http://last.fm/ ) in amaroK, and to use some basic controls as love/skip/ban.

LastamaroK can be integrated in both Firefox and Konqueror.

More informations about using LastamaroK are in the Readme.

LastamaroK is based on the lastFMProxy by Vidar Madesn ( http://vidar.gimp.org/?page_id=50 ).

LastamaroK depend of amaroK ;-), python, and Tkinter (packages python*.*-tk in many distributions).
Last changelog:

*Version 0.4.0:
-Add a second (or more) entry in the playlist for using the Amarok forward button.
-Add a hitory of recent played radio
-New 'Record to profil' option<
-Fix the 'menu entry wich not appear' bug

*Version 0.3.1 (since 0.3.0):
-new error message when Tk is missing
-new 'tune neighbour radio' entry in the context menu


Ratings & Comments

46 Comments

ZTwinsen

Hi, I can install and run the script successfully, but I cannot configure it. After I clicked the configure box inside the script manager, nothing happens at all. =.= Any idea? thx.

kaviazzz

sorry for the double posting was a bad refresh... i tried to comment this lines but i get File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 84 sc.config(command = self.radiolist.yview) ^ IndentationError: expected an indented block

kaviazzz

Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib64/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 396, in notif configure() File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 151, in configure Conf = Configure() File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 78, in __init__ f = open(os.path.join(lfmp.basedir, "bookmarks.txt"),'r') IOError: [Errno 2] No such file or directory: '/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/bookmarks.txt' u got a clue about this error boss ?? :) thkz in advance... grate idea...

Thesa

You may try to comment lines 78 to 83 of lastamarok.py by adding a # at the top of the line. BUT Amarok has a builtin support of last.fm radios (since the 1.4.1 version), and I'll no longer support the LastamaroK script.

kaviazzz

Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib64/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 396, in notif configure() File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 151, in configure Conf = Configure() File "/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py", line 78, in __init__ f = open(os.path.join(lfmp.basedir, "bookmarks.txt"),'r') IOError: [Errno 2] No such file or directory: '/home/kav/.kde3.5/share/apps/amarok/scripts/lastamarok.amarokscript/bookmarks.txt' u got a clue about this error boss ?? :) thkz in advance... grate idea...

dasbooter

Stopping this script or shutting down amarok does not kill the python process started for lastamarok on my system therefor it seems multiple python processes are started. On my syste m scripts like amarok_replaygain to shut down correctly.

dasbooter

On my syste m scripts like amarok_replaygain to shut down correctly Should read: On my ststem scripts like amarok_replaygain do shutdown correctly.

Thesa

Yes, this can occur some times... The lastfmproxy is running as a new thread. When you quit Amarok, my script tell to the lastfmproxy to quit, but it don't always quit. I don't know if I'll try to fix this problems (and to continue to maintain this script) : Amarok as now a lastfm radio support with its new version 1.4.1.

dasbooter

sorry I couldnt be of more help. I wasnt complaining just trying to help beta test so to speak. I enjoy the use of this script. On my distro I am running Amarok 1.41 beta1 using kde 3.53 level a (which I just updated to, build date june 19,2006) amarok looks alot different. It is not in this beta version. Will built in support be available in the next beta?

AceTheFace

In current Amarok-SVN there's "real" last.fm-support. With Metadata, Cover, Skip, Love, Ban etc. But thx for your great work for all non-svn-users.

Thesa

I know it's in project, but I never try it. A real integration will be better than a script. This script it's just for waiting...

AceTheFace

And the waiting is over...with 1.4.1 last.fm is fully integrated.

Thesa

I'm trying to install this new version. I'll edit the lastamarok presentation to recomand to upgrade amarok.

dasbooter

Having alot of trouble getting this to work with firefox. I had to manually add a string named network.protocol-handler.app.lastfm value=/opt/kde3/bin/amarok to get rid of the warning firefox doesnt know what to do with the protocol lastfm. I cannot switch stations though, using firefox nothing happens. Things work better with konqueror stations can be changed with this browser an update bar lets you know that you have changed the station via the browser. This does not happen with firefox?? Firefox is my default browser this is an awesome script I hope we can get them to play nice on my system.

Thesa

Have you try to integrate LastamaroK in Firefox by just clicking on the button in the LastamaroK configuration window ? Normally, it work (you just must restart Firefox). In fact, it's not Amarok you must run in network.protocol-handler.app.lastfm but the lastamarok.py file from my script (probably $HOME/.kde/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py ). Amarok can not work directly with lastfm:// urls.

dasbooter

Yes I tried the button but that didnt work. Have fixed it somehow though.See me answering my own comment. I wonder if a similiar strategy could be used to get the mplayer plugin to stop playing the shoutcast .pls files and get amarok to play them when you click on the button?

Thesa

Just go in the preferences of firefox, in Download > view and edit action. Disable mplayer plugin for pls. Next, open a pls file, and select Amarok as application, and choose to always use it. It's just a file type, not a protocol (like lastfm://). For file type, you have not to go in about:config.

dasbooter

disable the plugin no thanks this plugin works great for other media just would like amarok for playing .pls

Thesa

Sorry ! I want to say : -You disable the plugin -You open a pls file, choose Amarok and *check the option always use Amarok* -You enable the plugin Normally, the action Amarok for pls will be used instead of mplayer only for pls file. In other case, it's mplayer plugin (I use this plugin too, I like it too).

dasbooter

yes i understood already the file versus protocol thing

dasbooter

Ok I fixed it first I tried the settings in about config I found here and strangely enough I still got that warning firefox gives about no knowing which app to use. Anyways I changed my profile to be the Default User profile with the profile manager then hit the button for integrating firefox in the config window of lastamarok and now all is working.Stramgely enought I am sure that I entered the same entries manually that are entered now so wtf and I am sure I restarted everything oh well thats linux for you I guess I just will be happy its fixed :)

Thesa

Yes, my script integrate itself only in the default profile. I would change that in the next release.

GrimReaper

Pretty tool, really useful, I like it, but it has a small bug. Every track's name which contains an apostrophe (') is truncated at this position, when displayed in the amarok window. Would be nice to have it fixed.

Thesa

Yes but... it's in the lastFMProxy code part, and I don't know very well this code. I will try to work on all demands about metadata... but be patient ;-)

rastaplan

Hi, first thanks for the tool. I am wondering if its possible to use it in connection with recordradio to rip the last.fm stream? I tried it with amarok1.4.0 and the latest version of your script, but it didnt work out... any ideas? Thanks! Christian

Pling
0 Affiliates
Details
license
version 0.4.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Amarok 1.x Scripts from Thesa:

gmmkeys
Thesa
last update date: 18 years ago

Score 5.0

Other Amarok 1.x Scripts:

Gnome Play Video in Totem
mwheatland
last update date: 19 years ago

Score 5.0

editLyrics-gnome
ZeeD
last update date: 19 years ago

Score 5.0

amarok Alarm
aroth
last update date: 16 years ago

Score 5.0

amaroK Web Collection V xmms
pti-jean
last update date: 16 years ago

Score 5.0

SongLogger
lucatnt
last update date: 17 years ago

Score 5.0

amaroK Web Collection
pti-jean
last update date: 16 years ago

Score 5.0



System Tags