LastamaroK
Amarok 1.x Scripts
Score 50%
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:

11 years ago

*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

ZTwinsen

9 years ago

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.

Report

kaviazzz

9 years ago

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

Report

kaviazzz

9 years ago

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...

Report

Thesa

9 years ago

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.

Report

kaviazzz

9 years ago

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...

Report

dasbooter

10 years ago

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.

Report

dasbooter

10 years ago

On my syste m scripts like amarok_replaygain to shut down correctly

Should read:

On my ststem scripts like amarok_replaygain do shutdown correctly.

Report

Thesa

10 years ago

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.

Report

dasbooter

10 years ago

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?

Report

AceTheFace

10 years ago

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.

Report

Thesa

10 years ago

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...

Report

AceTheFace

10 years ago

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

Report

Thesa

10 years ago

I'm trying to install this new version.

I'll edit the lastamarok presentation to recomand to upgrade amarok.

Report

dasbooter

10 years ago

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.

Report

Thesa

10 years ago

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.

Report

dasbooter

10 years ago

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?

Report

Thesa

10 years ago

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.

Report

dasbooter

10 years ago

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

Report

Thesa

10 years ago

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).

Report

dasbooter

10 years ago

yes i understood already the file versus protocol thing

Report

dasbooter

10 years ago

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 :)

Report

Thesa

10 years ago

Yes, my script integrate itself only in the default profile.

I would change that in the next release.

Report

GrimReaper

11 years ago

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.

Report

Thesa

11 years ago

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 ;-)

Report

rastaplan

11 years ago

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

Report

11 years ago

*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

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
Details
version
0.4.0
updated Jul 02 2006
added May 27 2006
downloads
page views 435